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 | cc6978528cbd475d952e0eb5073375839dfb600e (patch) | |
tree | 96d07f0b08b08c0ebfaf8c73252316cb8c978652 /arch/x86/kernel/tls.c | |
parent | 26048d75e8d6c840742468667f4a7ab8c2df74c9 (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 'arch/x86/kernel/tls.c')
-rw-r--r-- | arch/x86/kernel/tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/tls.c b/arch/x86/kernel/tls.c index 74d2b65a82eb..98f428be8e8c 100644 --- a/arch/x86/kernel/tls.c +++ b/arch/x86/kernel/tls.c | |||
@@ -112,7 +112,7 @@ int do_get_thread_area(struct task_struct *p, int idx, | |||
112 | 112 | ||
113 | memset(&info, 0, sizeof(struct user_desc)); | 113 | memset(&info, 0, sizeof(struct user_desc)); |
114 | info.entry_number = idx; | 114 | info.entry_number = idx; |
115 | info.base_addr = get_desc_base((void *)desc); | 115 | info.base_addr = get_desc_base((struct desc_struct *)desc); |
116 | info.limit = GET_LIMIT(desc); | 116 | info.limit = GET_LIMIT(desc); |
117 | info.seg_32bit = GET_32BIT(desc); | 117 | info.seg_32bit = GET_32BIT(desc); |
118 | info.contents = GET_CONTENTS(desc); | 118 | info.contents = GET_CONTENTS(desc); |