NetBSD/sys/arch/x86_64/include/specialreg.h
fvdl 9b4c0e34d2 Initial commit of the port to AMD's upcoming 64 bit architecture, the
x86-64. Since there's no hardware available yet, this port is only
known to run on the Simics simulator for at the moment, and as such
uses the PC devices that it simulates for now. It will be developed
more (and cleaned up) as the hardware becomes available.
2001-06-19 00:19:12 +00:00

25 lines
703 B
C

/* $NetBSD: specialreg.h,v 1.1 2001/06/19 00:20:13 fvdl Exp $ */
#ifdef _KERNEL
#include <i386/include/specialreg.h>
#else
#include <i386/specialreg.h>
#endif
/*
* Extended Feature Enable Register of the x86-64
*/
#define MSR_EFER 0xc0000080
#define EFER_SCE 0x00000001 /* SYSCALL extension */
#define EFER_LME 0x00000100 /* Long Mode Active */
#define EFER_LMA 0x00000400 /* Long Mode Enabled */
#define MSR_STAR 0xc0000081 /* 32 bit syscall gate addr */
#define MSR_LSTAR 0xc0000082 /* 64 bit syscall gate addr */
#define MSR_CSTAR 0xc0000083 /* compat syscall gate addr */
#define MSR_FSBASE 0xc0000100 /* 64bit offset for fs: */
#define MSR_GSBASE 0xc0000101 /* 64bit offset for gs: */