svn commit: r199774 - in stable/8/sys/i386: include/xen xen

Kip Macy kmacy at FreeBSD.org
Wed Nov 25 01:55:35 UTC 2009


Author: kmacy
Date: Wed Nov 25 01:55:34 2009
New Revision: 199774
URL: http://svn.freebsd.org/changeset/base/199774

Log:
  fix UP compilation

Modified:
  stable/8/sys/i386/include/xen/xen-os.h
  stable/8/sys/i386/xen/locore.s

Modified: stable/8/sys/i386/include/xen/xen-os.h
==============================================================================
--- stable/8/sys/i386/include/xen/xen-os.h	Wed Nov 25 01:52:36 2009	(r199773)
+++ stable/8/sys/i386/include/xen/xen-os.h	Wed Nov 25 01:55:34 2009	(r199774)
@@ -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)  
 {

Modified: stable/8/sys/i386/xen/locore.s
==============================================================================
--- stable/8/sys/i386/xen/locore.s	Wed Nov 25 01:52:36 2009	(r199773)
+++ stable/8/sys/i386/xen/locore.s	Wed Nov 25 01:55:34 2009	(r199774)
@@ -148,9 +148,7 @@ IdlePDPT:	.long	0		/* phys addr of kerne
 	.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


More information about the svn-src-stable mailing list