Print this page
9736 kmdb tortures via single-step miscellaneous trap
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/kdi/kdi_idt.c
          +++ new/usr/src/uts/intel/kdi/kdi_idt.c
↓ open down ↓ 80 lines elided ↑ open up ↑
  81   81  #include <vm/hat_i86.h>
  82   82  
  83   83  #define KDI_GATE_NVECS  3
  84   84  
  85   85  #define KDI_IDT_NOSAVE  0
  86   86  #define KDI_IDT_SAVE    1
  87   87  
  88   88  #define KDI_IDT_DTYPE_KERNEL    0
  89   89  #define KDI_IDT_DTYPE_BOOT      1
  90   90  
       91 +/* Solely to keep kdiregs_t in the CTF, otherwise unused. */
       92 +kdiregs_t kdi_regs;
       93 +
  91   94  kdi_cpusave_t *kdi_cpusave;
  92   95  int kdi_ncpusave;
  93   96  
  94   97  static kdi_main_t kdi_kmdb_main;
  95   98  
  96   99  kdi_drreg_t kdi_drreg;
  97  100  
  98  101  #ifndef __amd64
  99  102  /* Used to track the current set of valid kernel selectors. */
 100  103  uint32_t        kdi_cs;
↓ open down ↓ 332 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX