Print this page
9441 kmdb should stash %cr3 in kdiregs
Reviewed by: John Levon <john.levon@joyent.com>
8956 Implement KPTI
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/intel/mdb/mdb_kreg.h
          +++ new/usr/src/cmd/mdb/intel/mdb/mdb_kreg.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 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2018 Joyent, Inc.
  24   26   */
  25   27  
  26   28  #ifndef _MDB_KREG_H
  27   29  #define _MDB_KREG_H
  28   30  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   31  #include <sys/kdi_regs.h>
  32   32  #ifndef _ASM
  33   33  #include <sys/types.h>
  34   34  #endif
  35   35  
  36   36  #ifdef  __cplusplus
  37   37  extern "C" {
  38   38  #endif
  39   39  
  40   40  #ifndef _ASM
↓ open down ↓ 27 lines elided ↑ open up ↑
  68   68  #define KREG_R10        KDIREG_R10
  69   69  #define KREG_R11        KDIREG_R11
  70   70  #define KREG_R12        KDIREG_R12
  71   71  #define KREG_R13        KDIREG_R13
  72   72  #define KREG_R14        KDIREG_R14
  73   73  #define KREG_R15        KDIREG_R15
  74   74  #define KREG_DS         KDIREG_DS
  75   75  #define KREG_ES         KDIREG_ES
  76   76  #define KREG_FS         KDIREG_FS
  77   77  #define KREG_GS         KDIREG_GS
       78 +#define KREG_GSBASE     KDIREG_GSBASE
       79 +#define KREG_KGSBASE    KDIREG_KGSBASE
  78   80  #define KREG_TRAPNO     KDIREG_TRAPNO
  79   81  #define KREG_ERR        KDIREG_ERR
       82 +#define KREG_CR2        KDIREG_CR2
       83 +#define KREG_CR3        KDIREG_CR3
  80   84  #define KREG_RIP        KDIREG_RIP
  81   85  #define KREG_CS         KDIREG_CS
  82   86  #define KREG_RFLAGS     KDIREG_RFLAGS
  83   87  #define KREG_RSP        KDIREG_RSP
  84   88  #define KREG_SS         KDIREG_SS
  85   89  
  86   90  #define KREG_PC         KREG_RIP
  87   91  #define KREG_SP         KREG_RSP
  88   92  #define KREG_FP         KREG_RBP
  89   93  
↓ open down ↓ 116 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX