Print this page
9210 remove KMDB branch debugging support
9211 ::crregs could do with cr2/cr3 support
9209 ::ttrace should be able to filter by thread
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/sys/controlregs.h
          +++ new/usr/src/uts/intel/sys/controlregs.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  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) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright 2015, Joyent, Inc.
       24 + *
       25 + * Copyright 2018 Joyent, Inc.
  24   26   */
  25   27  
  26   28  #ifndef _SYS_CONTROLREGS_H
  27   29  #define _SYS_CONTROLREGS_H
  28   30  
  29   31  #ifndef _ASM
  30   32  #include <sys/types.h>
  31   33  #endif
  32   34  
  33   35  #ifdef __cplusplus
↓ open down ↓ 67 lines elided ↑ open up ↑
 101  103  #define CR4_PAE         0x0020          /* physical address extension   */
 102  104  #define CR4_MCE         0x0040          /* machine check enable         */
 103  105  #define CR4_PGE         0x0080          /* page global enable           */
 104  106  #define CR4_PCE         0x0100          /* perf-monitoring counter enable */
 105  107  #define CR4_OSFXSR      0x0200          /* OS fxsave/fxrstor support    */
 106  108  #define CR4_OSXMMEXCPT  0x0400          /* OS unmasked exception support */
 107  109                                          /* 0x0800 reserved */
 108  110                                          /* 0x1000 reserved */
 109  111  #define CR4_VMXE        0x2000
 110  112  #define CR4_SMXE        0x4000
      113 +#define CR4_PCIDE       0x20000         /* PCID enable */
 111  114  #define CR4_OSXSAVE     0x40000         /* OS xsave/xrestore support    */
 112  115  #define CR4_SMEP        0x100000        /* NX for user pages in kernel */
 113  116  #define CR4_SMAP        0x200000        /* kernel can't access user pages */
 114  117  
 115  118  #define FMT_CR4                                         \
 116      -        "\20\26smap\25smep\23osxsav"                    \
      119 +        "\20\26smap\25smep\23osxsav\22pcide"            \
 117  120          "\17smxe\16vmxe\13xmme\12fxsr\11pce\10pge"      \
 118  121          "\7mce\6pae\5pse\4de\3tsd\2pvi\1vme"
 119  122  
 120  123  /*
 121  124   * Enable the SSE-related control bits to explain to the processor that
 122  125   * we're managing XMM state and exceptions
 123  126   */
 124  127  #define CR4_ENABLE_SSE_FLAGS(cr)        \
 125  128          ((cr) | CR4_OSFXSR | CR4_OSXMMEXCPT)
 126  129  
↓ open down ↓ 115 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX