]> git.baikalelectronics.ru Git - kernel.git/commit
x86: unify desc_struct
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Wed, 30 Jan 2008 12:31:11 +0000 (13:31 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:31:11 +0000 (13:31 +0100)
commit129e6b875b8c4288ee5d0a6f46e766ed49fa7d72
treedfee4feb74f15ea3819b57848e59fb29ebb10750
parentf9e88919c31bca9499de769fda5a187360cdf470
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>
arch/x86/kernel/apm_32.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/process_64.c
arch/x86/kernel/traps_32.c
include/asm-x86/desc_defs.h
include/asm-x86/lguest.h
include/asm-x86/processor_32.h