specialreg.h revision 1.3 1 /* $NetBSD: specialreg.h,v 1.3 2005/12/11 12:16:25 christos Exp $ */
2
3 #include <x86/specialreg.h>
4
5 /*
6 * Extended Feature Enable Register of the x86-64
7 */
8
9 #define MSR_EFER 0xc0000080
10
11 #define EFER_SCE 0x00000001 /* SYSCALL extension */
12 #define EFER_LME 0x00000100 /* Long Mode Active */
13 #define EFER_LMA 0x00000400 /* Long Mode Enabled */
14 #define EFER_NXE 0x00000800 /* No-Execute Enabled */
15
16 #define MSR_STAR 0xc0000081 /* 32 bit syscall gate addr */
17 #define MSR_LSTAR 0xc0000082 /* 64 bit syscall gate addr */
18 #define MSR_CSTAR 0xc0000083 /* compat syscall gate addr */
19 #define MSR_SFMASK 0xc0000084 /* flags to clear on syscall */
20
21 #define MSR_FSBASE 0xc0000100 /* 64bit offset for fs: */
22 #define MSR_GSBASE 0xc0000101 /* 64bit offset for gs: */
23 #define MSR_KERNELGSBASE 0xc0000102 /* storage for swapgs ins */
24