aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu
diff options
context:
space:
mode:
authorJaswinder Singh Rajput <jaswinder@kernel.org>2009-03-11 09:43:49 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-11 09:52:03 -0400
commit8229d754383e8cd905c38b56bd7365c7fc10dfc1 (patch)
treebb218cce365a0f8d230414b350cf150eb0c784d3 /arch/x86/kernel/cpu
parent9b779edf4b97798d037bb44fca2719ac184d0f14 (diff)
x86: cpu architecture debug code, build fix, cleanup
move store_ldt outside the CONFIG_PARAVIRT section and also clean up the code a bit. Signed-off-by: Jaswinder Singh Rajput <jaswinder@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rwxr-xr-xarch/x86/kernel/cpu/cpu_debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpu_debug.c b/arch/x86/kernel/cpu/cpu_debug.c
index 0bdf4daba205..9abbcbd933cc 100755
--- a/arch/x86/kernel/cpu/cpu_debug.c
+++ b/arch/x86/kernel/cpu/cpu_debug.c
@@ -23,6 +23,7 @@
23#include <linux/smp.h> 23#include <linux/smp.h>
24 24
25#include <asm/cpu_debug.h> 25#include <asm/cpu_debug.h>
26#include <asm/paravirt.h>
26#include <asm/system.h> 27#include <asm/system.h>
27#include <asm/traps.h> 28#include <asm/traps.h>
28#include <asm/apic.h> 29#include <asm/apic.h>
@@ -427,7 +428,7 @@ static void print_tss(void *arg)
427 seq_printf(seq, " CS\t: %04x\n", seg); 428 seq_printf(seq, " CS\t: %04x\n", seg);
428 asm("movl %%ds,%0" : "=r" (seg)); 429 asm("movl %%ds,%0" : "=r" (seg));
429 seq_printf(seq, " DS\t: %04x\n", seg); 430 seq_printf(seq, " DS\t: %04x\n", seg);
430 seq_printf(seq, " SS\t: %04lx\n", regs->ss); 431 seq_printf(seq, " SS\t: %04lx\n", regs->ss & 0xffff);
431 asm("movl %%es,%0" : "=r" (seg)); 432 asm("movl %%es,%0" : "=r" (seg));
432 seq_printf(seq, " ES\t: %04x\n", seg); 433 seq_printf(seq, " ES\t: %04x\n", seg);
433 asm("movl %%fs,%0" : "=r" (seg)); 434 asm("movl %%fs,%0" : "=r" (seg));