x86: introduce fill_ldt
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Wed, 30 Jan 2008 12:31:13 +0000 (13:31 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:31:13 +0000 (13:31 +0100)
commit80fbb69a8d1268ef48dfe21da80e68cb01922f31
tree6cc2d5d0fdc40eb53f74e36c5557fa24f89edce0
parent5af725026fe902bf81f1b90b1b9d9ee4b9e1eb6a
x86: introduce fill_ldt

This patch introduces fill_ldt(), which populates a ldt descriptor
from a user_desc in once, instead of relying in the LDT_entry_a and
LDT_entry_b macros

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/ldt.c
arch/x86/kernel/process_64.c
arch/x86/kernel/tls.c
include/asm-x86/desc.h
include/asm-x86/desc_32.h
include/asm-x86/desc_64.h