[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
- [PATCH 00/10] Warnings cleanup to make way for amd64 porting, Guillem Jover, 2009/12/17
- [PATCH 01/10] Use explicit type int when defining register variables, Guillem Jover, 2009/12/17
- [PATCH 02/10] Match function types with `struct tty' member functions, Guillem Jover, 2009/12/17
- [PATCH 05/10] Interrupt handlers do not return any value, Guillem Jover, 2009/12/17
- [PATCH 08/10] Use `unsigned char *' for byte buffers, Guillem Jover, 2009/12/17
- [PATCH 07/10] Mark macro arguments as used, Guillem Jover, 2009/12/17
- [PATCH 06/10] Missing `*' in assembler indirect lcall, Guillem Jover, 2009/12/17
- [PATCH 04/10] Use selector definitions from Mach for Linux code,
Guillem Jover <=
- [PATCH 03/10] Move linux/dev/include/asm-i386/segment.h to src tree, Guillem Jover, 2009/12/17
- [PATCH 09/10] Add missing function prototypes, Guillem Jover, 2009/12/17
- [PATCH 10/10] Add missing casts, Guillem Jover, 2009/12/17
- Re: [PATCH 00/10] Warnings cleanup to make way for amd64 porting, Samuel Thibault, 2009/12/17