diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:14 -0500 |
commit | 54cd0eac7286b83ef1a657d2dddd74e0556209e7 (patch) | |
tree | aed1dfd42c1e66dff168387d9539e98dbe64c098 /include/asm-x86/desc_defs.h | |
parent | cc6978528cbd475d952e0eb5073375839dfb600e (diff) |
x86: unify paravirt pieces of descriptor handling
With the types used to access descriptors in x86_64 and i386
now being the same, the code that effectively handles them can
now be easily shared. This patch moves the paravirt part of
desc_32.h into desc.h, and then, we get paravirt support in x86_64
for free.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/desc_defs.h')
-rw-r--r-- | include/asm-x86/desc_defs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-x86/desc_defs.h b/include/asm-x86/desc_defs.h index 79fe59fc50ec..ebb64fe3a450 100644 --- a/include/asm-x86/desc_defs.h +++ b/include/asm-x86/desc_defs.h | |||
@@ -48,9 +48,9 @@ struct gate_struct64 { | |||
48 | u32 zero1; | 48 | u32 zero1; |
49 | } __attribute__((packed)); | 49 | } __attribute__((packed)); |
50 | 50 | ||
51 | #define PTR_LOW(x) ((unsigned long)(x) & 0xFFFF) | 51 | #define PTR_LOW(x) ((unsigned long long)(x) & 0xFFFF) |
52 | #define PTR_MIDDLE(x) (((unsigned long)(x) >> 16) & 0xFFFF) | 52 | #define PTR_MIDDLE(x) (((unsigned long long)(x) >> 16) & 0xFFFF) |
53 | #define PTR_HIGH(x) ((unsigned long)(x) >> 32) | 53 | #define PTR_HIGH(x) ((unsigned long long)(x) >> 32) |
54 | 54 | ||
55 | enum { | 55 | enum { |
56 | DESC_TSS = 0x9, | 56 | DESC_TSS = 0x9, |