diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-10-26 05:49:11 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-10-26 05:49:11 +0000 |
commit | a4df4a7013e2d01f443f7fdc55b5d5f5ab1e5443 (patch) | |
tree | 590a6e44ce0da7a34d3f3bea603846e1d45c5872 /sys/arch/amd64/include/sysarch.h | |
parent | 774be140237fba0f40d26e1bc54517a357e02567 (diff) |
The LDT is only used by dead compat code now, so load the ldt
register with the null selector (disabling use of it), stop reloading
it on every context switch, and blow away the table itself, as well
as the pcb and pmap bits that were used to track it. Also, delete
two other unused pcb members: pcb_usersp and pcb_flags. (Deleting
pcb_usersp also keeps the pcb_savefpu member aligned properly.)
Finally, delete the defines for the unimplemented AMD64_{GET,SET}_LDT
sysarch() calls.
Tested by various with both AMD and Intel chips
ok mikeb@
Diffstat (limited to 'sys/arch/amd64/include/sysarch.h')
-rw-r--r-- | sys/arch/amd64/include/sysarch.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/amd64/include/sysarch.h b/sys/arch/amd64/include/sysarch.h index 1be21cd9bd1..5d7c23c11c1 100644 --- a/sys/arch/amd64/include/sysarch.h +++ b/sys/arch/amd64/include/sysarch.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sysarch.h,v 1.4 2009/09/18 21:08:19 martynas Exp $ */ +/* $OpenBSD: sysarch.h,v 1.5 2010/10/26 05:49:10 guenther Exp $ */ /* $NetBSD: sysarch.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $ */ #ifndef _AMD64_SYSARCH_H_ @@ -7,8 +7,6 @@ /* * Architecture specific syscalls (amd64) */ -#define AMD64_GET_LDT 0 -#define AMD64_SET_LDT 1 #define AMD64_IOPL 2 #define AMD64_GET_IOPERM 3 #define AMD64_SET_IOPERM 4 |