From fa178c7b04652f85edcd77da64317b235a9a7bce Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Wed, 25 Nov 2009 01:55:34 +0000 Subject: [PATCH] fix UP compilation --- sys/i386/include/xen/xen-os.h | 2 +- sys/i386/xen/locore.s | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/i386/include/xen/xen-os.h b/sys/i386/include/xen/xen-os.h index dac071afce7e..4aaeb58e9bbe 100644 --- a/sys/i386/include/xen/xen-os.h +++ b/sys/i386/include/xen/xen-os.h @@ -34,10 +34,10 @@ void force_evtchn_callback(void); #include #endif +extern int gdtset; #ifdef SMP #include /* XXX for pcpu.h */ #include /* XXX for PCPU_GET */ -extern int gdtset; static inline int smp_processor_id(void) { diff --git a/sys/i386/xen/locore.s b/sys/i386/xen/locore.s index a2c4a8db7b74..95d2afae8411 100644 --- a/sys/i386/xen/locore.s +++ b/sys/i386/xen/locore.s @@ -148,9 +148,7 @@ IdlePDPT: .long 0 /* phys addr of kernel PDPT */ .globl KPTphys #endif KPTphys: .long 0 /* phys addr of kernel page tables */ -#ifdef SMP .globl gdtset -#endif gdtset: .long 0 /* GDT is valid */ .globl proc0kstack