diff options
Diffstat (limited to 'include/asm-x86/desc_32.h')
-rw-r--r-- | include/asm-x86/desc_32.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/asm-x86/desc_32.h b/include/asm-x86/desc_32.h index 01415ad35fdf..8450c2a99c3a 100644 --- a/include/asm-x86/desc_32.h +++ b/include/asm-x86/desc_32.h | |||
@@ -168,14 +168,6 @@ static inline void __set_tss_desc(unsigned int cpu, unsigned int entry, const vo | |||
168 | 168 | ||
169 | #define set_tss_desc(cpu,addr) __set_tss_desc(cpu, GDT_ENTRY_TSS, addr) | 169 | #define set_tss_desc(cpu,addr) __set_tss_desc(cpu, GDT_ENTRY_TSS, addr) |
170 | 170 | ||
171 | static inline unsigned long get_desc_base(unsigned long *desc) | ||
172 | { | ||
173 | unsigned long base; | ||
174 | base = ((desc[0] >> 16) & 0x0000ffff) | | ||
175 | ((desc[1] << 16) & 0x00ff0000) | | ||
176 | (desc[1] & 0xff000000); | ||
177 | return base; | ||
178 | } | ||
179 | #endif /* !__ASSEMBLY__ */ | 171 | #endif /* !__ASSEMBLY__ */ |
180 | 172 | ||
181 | #endif | 173 | #endif |