diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2009-07-18 11:12:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-08 11:44:11 -0400 |
commit | 1e5de18278e6862f4198412b5059a03770fa816a (patch) | |
tree | 23ca6dfed95bd5f53d69d4b94ada59358765ad79 /arch/x86/include/asm/lguest.h | |
parent | 57594742a2b545f8f114cda34f15650be8ae976d (diff) |
x86: Introduce GDT_ENTRY_INIT()
GDT_ENTRY_INIT is static initializer of desc_struct.
We already have similar macro GDT_ENTRY() but it's static
initializer for u64 and it cannot be used for desc_struct.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
LKML-Reference: <20090718151219.GD11294@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/lguest.h')
-rw-r--r-- | arch/x86/include/asm/lguest.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/include/asm/lguest.h b/arch/x86/include/asm/lguest.h index 313389cd50d2..94cd69858b14 100644 --- a/arch/x86/include/asm/lguest.h +++ b/arch/x86/include/asm/lguest.h | |||
@@ -91,8 +91,9 @@ static inline void lguest_set_ts(void) | |||
91 | } | 91 | } |
92 | 92 | ||
93 | /* Full 4G segment descriptors, suitable for CS and DS. */ | 93 | /* Full 4G segment descriptors, suitable for CS and DS. */ |
94 | #define FULL_EXEC_SEGMENT ((struct desc_struct){ { {0x0000ffff, 0x00cf9b00} } }) | 94 | #define FULL_EXEC_SEGMENT \ |
95 | #define FULL_SEGMENT ((struct desc_struct){ { {0x0000ffff, 0x00cf9300} } }) | 95 | ((struct desc_struct)GDT_ENTRY_INIT(0xc09b, 0, 0xfffff)) |
96 | #define FULL_SEGMENT ((struct desc_struct)GDT_ENTRY_INIT(0xc093, 0, 0xfffff)) | ||
96 | 97 | ||
97 | #endif /* __ASSEMBLY__ */ | 98 | #endif /* __ASSEMBLY__ */ |
98 | 99 | ||