aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/desc_64.h
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-30 07:31:14 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:14 -0500
commitcc6978528cbd475d952e0eb5073375839dfb600e (patch)
tree96d07f0b08b08c0ebfaf8c73252316cb8c978652 /include/asm-x86/desc_64.h
parent26048d75e8d6c840742468667f4a7ab8c2df74c9 (diff)
x86: modify get_desc_base
This patch makes get_desc_base() receive a struct desc_struct, and then uses its internal fields to compute the base address. This is done at both i386 and x86_64, and then it is moved to common header 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_64.h')
-rw-r--r--include/asm-x86/desc_64.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/asm-x86/desc_64.h b/include/asm-x86/desc_64.h
index 448f96ed973f..a7a6c301c6bc 100644
--- a/include/asm-x86/desc_64.h
+++ b/include/asm-x86/desc_64.h
@@ -156,15 +156,6 @@ static inline void load_TLS(struct thread_struct *t, unsigned int cpu)
156 gdt[i] = t->tls_array[i]; 156 gdt[i] = t->tls_array[i];
157} 157}
158 158
159static inline unsigned long get_desc_base(const void *ptr)
160{
161 const u32 *desc = ptr;
162 unsigned long base;
163 base = ((desc[0] >> 16) & 0x0000ffff) |
164 ((desc[1] << 16) & 0x00ff0000) |
165 (desc[1] & 0xff000000);
166 return base;
167}
168#endif /* !__ASSEMBLY__ */ 159#endif /* !__ASSEMBLY__ */
169 160
170#endif 161#endif