diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:11 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:11 -0500 |
commit | 6842ef0e85a9cc1295f3ef933a230f863b01eb0f (patch) | |
tree | dfee4feb74f15ea3819b57848e59fb29ebb10750 /arch/x86/kernel/process_64.c | |
parent | 746ef0cd0c7190d570c65b8e39a4ac67550ae43a (diff) |
x86: unify desc_struct
This patch aims to make the access of struct desc_struct variables
equal across architectures. In this patch, I unify the i386 and x86_64
versions under an anonymous union, keeping the way they are accessed
untouched (a and b for 32-bit code, individual bit-fields for 64-bit).
This solution is not beautiful, but will allow us to integrate common
code that differed by the way descriptors were used. This is to be viewed
incrementally. There's simply too much code to be fixed at once.
In the future, goal is to set up in a single way of acessing
the desc_struct fields.
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/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 843bf0c978a4..86c310acc989 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -455,7 +455,7 @@ static inline void set_32bit_tls(struct task_struct *t, int tls, u32 addr) | |||
455 | .limit_in_pages = 1, | 455 | .limit_in_pages = 1, |
456 | .useable = 1, | 456 | .useable = 1, |
457 | }; | 457 | }; |
458 | struct n_desc_struct *desc = (void *)t->thread.tls_array; | 458 | struct desc_struct *desc = (void *)t->thread.tls_array; |
459 | desc += tls; | 459 | desc += tls; |
460 | desc->a = LDT_entry_a(&ud); | 460 | desc->a = LDT_entry_a(&ud); |
461 | desc->b = LDT_entry_b(&ud); | 461 | desc->b = LDT_entry_b(&ud); |