Print this page
9709 Remove support for BZIP2 from dump
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/opl/os/opl.c
          +++ new/usr/src/uts/sun4u/opl/os/opl.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  23   24   */
  24   25  
  25   26  #include <sys/cpuvar.h>
  26   27  #include <sys/systm.h>
  27   28  #include <sys/sysmacros.h>
  28   29  #include <sys/promif.h>
  29   30  #include <sys/platform_module.h>
  30   31  #include <sys/cmn_err.h>
  31   32  #include <sys/errno.h>
  32   33  #include <sys/machsystm.h>
↓ open down ↓ 181 lines elided ↑ open up ↑
 214  215  
 215  216          if ((mmu_page_sizes == max_mmu_page_sizes) &&
 216  217              (mmu_ism_pagesize != DEFAULT_ISM_PAGESIZE)) {
 217  218                  if (&mmu_init_large_pages)
 218  219                          mmu_init_large_pages(mmu_ism_pagesize);
 219  220          }
 220  221  
 221  222          tsb_lgrp_affinity = 1;
 222  223  
 223  224          set_max_mmu_ctxdoms();
 224      -
 225      -        /* set OPL threshold for compressed dumps */
 226      -        dump_plat_mincpu_default = DUMP_PLAT_SUN4U_OPL_MINCPU;
 227  225  }
 228  226  
 229  227  /*
 230  228   * Convert logical a board number to a physical one.
 231  229   */
 232  230  
 233  231  #define LSBPROP         "board#"
 234  232  #define PSBPROP         "physical-board#"
 235  233  
 236  234  int
↓ open down ↓ 617 lines elided ↑ open up ↑
 854  852                          }
 855  853                          scf_shutdown_callback(SIGSUBST_REBOOT);
 856  854                          break;
 857  855                  }
 858  856          }
 859  857  }
 860  858  
 861  859  /*ARGSUSED*/
 862  860  int
 863  861  plat_get_mem_unum(int synd_code, uint64_t flt_addr, int flt_bus_id,
 864      -        int flt_in_memory, ushort_t flt_status,
 865      -        char *buf, int buflen, int *lenp)
      862 +    int flt_in_memory, ushort_t flt_status, char *buf, int buflen, int *lenp)
 866  863  {
 867  864          /*
 868  865           * check if it's a Memory error.
 869  866           */
 870  867          if (flt_in_memory) {
 871  868                  if (opl_get_mem_unum != NULL) {
 872  869                          return (opl_get_mem_unum(synd_code, flt_addr, buf,
 873  870                              buflen, lenp));
 874  871                  } else {
 875  872                          return (ENOTSUP);
↓ open down ↓ 464 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX