fix UP compilation

This commit is contained in:
Kip Macy 2009-11-25 01:55:34 +00:00
parent 4956a0d10f
commit fa178c7b04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=199774
2 changed files with 1 additions and 3 deletions

View File

@ -34,10 +34,10 @@ void force_evtchn_callback(void);
#include <vm/pmap.h>
#endif
extern int gdtset;
#ifdef SMP
#include <sys/time.h> /* XXX for pcpu.h */
#include <sys/pcpu.h> /* XXX for PCPU_GET */
extern int gdtset;
static inline int
smp_processor_id(void)
{

View File

@ -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