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>
*** 19,35 ****
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MDB_KREG_H
#define _MDB_KREG_H
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/kdi_regs.h>
#ifndef _ASM
#include <sys/types.h>
#endif
--- 19,35 ----
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2018 Joyent, Inc.
*/
#ifndef _MDB_KREG_H
#define _MDB_KREG_H
#include <sys/kdi_regs.h>
#ifndef _ASM
#include <sys/types.h>
#endif
*** 73,84 ****
--- 73,88 ----
#define KREG_R15 KDIREG_R15
#define KREG_DS KDIREG_DS
#define KREG_ES KDIREG_ES
#define KREG_FS KDIREG_FS
#define KREG_GS KDIREG_GS
+ #define KREG_GSBASE KDIREG_GSBASE
+ #define KREG_KGSBASE KDIREG_KGSBASE
#define KREG_TRAPNO KDIREG_TRAPNO
#define KREG_ERR KDIREG_ERR
+ #define KREG_CR2 KDIREG_CR2
+ #define KREG_CR3 KDIREG_CR3
#define KREG_RIP KDIREG_RIP
#define KREG_CS KDIREG_CS
#define KREG_RFLAGS KDIREG_RFLAGS
#define KREG_RSP KDIREG_RSP
#define KREG_SS KDIREG_SS