Home | History | Annotate | Line # | Download | only in include
specialreg.h revision 1.1
      1  1.1  fvdl /*	$NetBSD: specialreg.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $	*/
      2  1.1  fvdl 
      3  1.1  fvdl #include <x86/specialreg.h>
      4  1.1  fvdl 
      5  1.1  fvdl /*
      6  1.1  fvdl  * Extended Feature Enable Register of the x86-64
      7  1.1  fvdl  */
      8  1.1  fvdl 
      9  1.1  fvdl #define MSR_EFER	0xc0000080
     10  1.1  fvdl 
     11  1.1  fvdl #define EFER_SCE	0x00000001	/* SYSCALL extension */
     12  1.1  fvdl #define EFER_LME	0x00000100	/* Long Mode Active */
     13  1.1  fvdl #define EFER_LMA	0x00000400	/* Long Mode Enabled */
     14  1.1  fvdl 
     15  1.1  fvdl #define MSR_STAR	0xc0000081		/* 32 bit syscall gate addr */
     16  1.1  fvdl #define MSR_LSTAR	0xc0000082		/* 64 bit syscall gate addr */
     17  1.1  fvdl #define MSR_CSTAR	0xc0000083		/* compat syscall gate addr */
     18  1.1  fvdl #define MSR_SFMASK	0xc0000084		/* flags to clear on syscall */
     19  1.1  fvdl 
     20  1.1  fvdl #define MSR_FSBASE		0xc0000100	/* 64bit offset for fs: */
     21  1.1  fvdl #define MSR_GSBASE		0xc0000101	/* 64bit offset for gs: */
     22  1.1  fvdl #define MSR_KERNELGSBASE	0xc0000102	/* storage for swapgs ins */
     23