diff options
author | Guillem Jover <guillem@hadrons.org> | 2009-12-17 14:39:24 +0100 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2009-12-18 11:35:43 +0100 |
commit | 2cd448b2a65df4d81950f9d5bd2389add9d1b8da (patch) | |
tree | 9c0d7fc1f06c13e03019a58a9c96957f5062c2b4 /linux/src/include | |
parent | f0d2abf1a3aa06e6b53dba642d09fd9237624107 (diff) |
Use selector definitions from Mach for Linux code
* linux/src/include/asm-i386/segment.h [MACH]: Include <machine/gdt.h>
and <machine/ldt.h>.
[MACH && MACH_HYP] (KERNEL_CS, KERNEL_DS): Remove macros.
[MACH && !MACH_HYP] (KERNEL_CS, KERNEL_DS): Likewise.
[MACH] (USER_CS, USER_DS): Likewise.
Diffstat (limited to 'linux/src/include')
-rw-r--r-- | linux/src/include/asm-i386/segment.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/linux/src/include/asm-i386/segment.h b/linux/src/include/asm-i386/segment.h index 300ba53..5f8af99 100644 --- a/linux/src/include/asm-i386/segment.h +++ b/linux/src/include/asm-i386/segment.h @@ -3,16 +3,8 @@ #ifdef MACH -#ifdef MACH_HYP -#define KERNEL_CS 0x09 -#define KERNEL_DS 0x11 -#else /* MACH_HYP */ -#define KERNEL_CS 0x08 -#define KERNEL_DS 0x10 -#endif /* MACH_HYP */ - -#define USER_CS 0x17 -#define USER_DS 0x1F +#include <machine/gdt.h> +#include <machine/ldt.h> #else /* !MACH */ |