From 2cd448b2a65df4d81950f9d5bd2389add9d1b8da Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 17 Dec 2009 14:39:24 +0100 Subject: Use selector definitions from Mach for Linux code * linux/src/include/asm-i386/segment.h [MACH]: Include and . [MACH && MACH_HYP] (KERNEL_CS, KERNEL_DS): Remove macros. [MACH && !MACH_HYP] (KERNEL_CS, KERNEL_DS): Likewise. [MACH] (USER_CS, USER_DS): Likewise. --- linux/src/include/asm-i386/segment.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'linux/src/include/asm-i386') 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 +#include #else /* !MACH */ -- cgit v1.2.3