diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:30:45 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:45 -0500 |
commit | 12c3cbbb7e3218b1c3ed4c97b3496fc3f94ea967 (patch) | |
tree | 055d83cf9cbd608e0ccf3ebe699b4b81e1f824a4 /include/asm-x86/processor_64.h | |
parent | df5d438e33d7fc914ba9b6e0d6b019a8966c5fcc (diff) |
x86: desc_empty
This replaces the desc_empty macro with an inline. It now handles
easily any of the four different types used between 32/64 code to
refer to these 8 bytes. It's identical in both asm-x86/processor_64.h
and asm-x86/processor_32.h, so if these files ever get merged this
function can be in the common code.
This also removes the desc_equal macro because nothing uses it.
Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/processor_64.h')
-rw-r--r-- | include/asm-x86/processor_64.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-x86/processor_64.h b/include/asm-x86/processor_64.h index 2ae8ceb8a74e..20d8935d141a 100644 --- a/include/asm-x86/processor_64.h +++ b/include/asm-x86/processor_64.h | |||
@@ -30,11 +30,11 @@ | |||
30 | #define VIP_MASK 0x00100000 /* virtual interrupt pending */ | 30 | #define VIP_MASK 0x00100000 /* virtual interrupt pending */ |
31 | #define ID_MASK 0x00200000 | 31 | #define ID_MASK 0x00200000 |
32 | 32 | ||
33 | #define desc_empty(desc) \ | 33 | static inline int desc_empty(const void *ptr) |
34 | (!((desc)->a | (desc)->b)) | 34 | { |
35 | 35 | const u32 *desc = ptr; | |
36 | #define desc_equal(desc1, desc2) \ | 36 | return !(desc[0] | desc[1]); |
37 | (((desc1)->a == (desc2)->a) && ((desc1)->b == (desc2)->b)) | 37 | } |
38 | 38 | ||
39 | /* | 39 | /* |
40 | * Default implementation of macro that returns current | 40 | * Default implementation of macro that returns current |