diff options
Diffstat (limited to 'include/asm-x86/desc.h')
-rw-r--r-- | include/asm-x86/desc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-x86/desc.h b/include/asm-x86/desc.h index e9356a852020..e17581ad8824 100644 --- a/include/asm-x86/desc.h +++ b/include/asm-x86/desc.h | |||
@@ -71,6 +71,12 @@ static inline void pack_gate(gate_desc *gate, unsigned char type, | |||
71 | 71 | ||
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | static inline int desc_empty(const void *ptr) | ||
75 | { | ||
76 | const u32 *desc = ptr; | ||
77 | return !(desc[0] | desc[1]); | ||
78 | } | ||
79 | |||
74 | #ifdef CONFIG_PARAVIRT | 80 | #ifdef CONFIG_PARAVIRT |
75 | #include <asm/paravirt.h> | 81 | #include <asm/paravirt.h> |
76 | #else | 82 | #else |