Print this page
10597 would like a way to set NMI behavior at boot
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/sys/bootconf.h
          +++ new/usr/src/uts/intel/sys/bootconf.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   * Copyright 2016 Nexenta Systems, Inc.
       26 + * Copyright 2019, Joyent, Inc.
  26   27   */
  27   28  
  28   29  #ifndef _SYS_BOOTCONF_H
  29   30  #define _SYS_BOOTCONF_H
  30   31  
  31   32  
  32   33  /*
  33   34   * Boot time configuration information objects
  34   35   */
  35   36  
↓ open down ↓ 3 lines elided ↑ open up ↑
  39   40  #include <sys/dirent.h>                 /* for struct dirent */
  40   41  #include <sys/memlist.h>
  41   42  #include <sys/obpdefs.h>
  42   43  #include <sys/varargs.h>
  43   44  #include <net/if.h>                     /* for IFNAMSIZ */
  44   45  
  45   46  #ifdef __cplusplus
  46   47  extern "C" {
  47   48  #endif
  48   49  
       50 +#define BP_MAX_STRLEN   32
       51 +
  49   52  /*
  50   53   * Boot property names
  51   54   */
  52   55  #define BP_CPU_APICID_ARRAY     "cpu_apicid_array"
  53   56  #define BP_LGRP_SLIT_ENABLE     "lgrp_slit_enable"
  54   57  #define BP_LGRP_SRAT_ENABLE     "lgrp_srat_enable"
  55   58  #define BP_LGRP_MSCT_ENABLE     "lgrp_msct_enable"
  56   59  #define BP_LGRP_TOPO_LEVELS     "lgrp_topo_levels"
  57   60  
  58   61  /*
↓ open down ↓ 177 lines elided ↑ open up ↑
 236  239  extern void vbop_printf(void *, const char *, va_list);
 237  240  
 238  241  /*PRINTFLIKE1*/
 239  242  extern void bop_panic(const char *, ...)
 240  243      __KPRINTFLIKE(1) __NORETURN;
 241  244  #pragma rarely_called(bop_panic)
 242  245  
 243  246  extern void boot_prop_finish(void);
 244  247  
 245  248  extern int bootprop_getval(const char *, u_longlong_t *);
      249 +extern int bootprop_getstr(const char *, char *, size_t);
 246  250  
 247  251  /*
 248  252   * Back door to fakebop.c to get physical memory allocated.
 249  253   * 64 bit data types are fixed for 32 bit PAE use.
 250  254   */
 251  255  extern paddr_t do_bop_phys_alloc(uint64_t, uint64_t);
 252  256  
 253  257  extern int do_bsys_getproplen(bootops_t *, const char *);
 254  258  extern int do_bsys_getprop(bootops_t *, const char *, void *);
 255  259  extern int do_bsys_getproptype(bootops_t *, const char *);
 256  260  
 257  261  #endif /* _KERNEL && !_BOOT */
 258  262  
 259  263  #ifdef __cplusplus
 260  264  }
 261  265  #endif
 262  266  
 263  267  #endif  /* _SYS_BOOTCONF_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX