projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/asm: Replace magic numbers in GDT descriptors, preparations
[linux-2.6-block.git]
/
arch
/
x86
/
include
/
asm
/
desc_defs.h
diff --git
a/arch/x86/include/asm/desc_defs.h
b/arch/x86/include/asm/desc_defs.h
index 7c08cbf3cbd07c5f21bb048ef915a0c7def84e99..33d229ed96dcf748a5e05b9f08132f18c0aa7a3e 100644
(file)
--- a/
arch/x86/include/asm/desc_defs.h
+++ b/
arch/x86/include/asm/desc_defs.h
@@
-144,6
+144,7
@@
struct gate_struct {
typedef struct gate_struct gate_desc;
+#ifndef _SETUP
static inline unsigned long gate_offset(const gate_desc *g)
{
#ifdef CONFIG_X86_64
@@
-158,6
+159,7
@@
static inline unsigned long gate_segment(const gate_desc *g)
{
return g->segment;
}
+#endif
struct desc_ptr {
unsigned short size;