bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 04/10] Use selector definitions from Mach for Linux code


From: Guillem Jover
Subject: [PATCH 04/10] Use selector definitions from Mach for Linux code
Date: Thu, 17 Dec 2009 14:39:24 +0100

        * linux/src/include/asm-i386/segment.h [MACH]: Include <machine/gdt.h>
        and <machine/ldt.h>.
        [MACH] (KERNEL_CS, KERNEL_DS, USER_CS, USER_DS): Remove macros.
---
 linux/src/include/asm-i386/segment.h |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/linux/src/include/asm-i386/segment.h 
b/linux/src/include/asm-i386/segment.h
index c7b3ff5..5f8af99 100644
--- a/linux/src/include/asm-i386/segment.h
+++ b/linux/src/include/asm-i386/segment.h
@@ -3,11 +3,8 @@
 
 #ifdef MACH
 
-#define KERNEL_CS      0x08
-#define KERNEL_DS      0x10
-
-#define USER_CS                0x17
-#define USER_DS                0x1F
+#include <machine/gdt.h>
+#include <machine/ldt.h>
 
 #else /* !MACH */
 
-- 
1.6.5.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]