From: Julien Grall Date: Sun, 1 Jun 2014 18:15:40 +0000 (+0100) Subject: xen: xen_start_info don't need to be export in common code X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=949e85d10dbcba384da096740986e5d1e3021a31;p=people%2Fjulieng%2Ffreebsd.git xen: xen_start_info don't need to be export in common code HYPERVISOR_start_info has been introduce to be used in code common. The variable xen_start_info is only used within amd64 and i386 architecture and is redundant with the former variable. --- diff --git a/sys/amd64/include/xen/xen-os.h b/sys/amd64/include/xen/xen-os.h index ee498b9d09ac..d217ca4608a6 100644 --- a/sys/amd64/include/xen/xen-os.h +++ b/sys/amd64/include/xen/xen-os.h @@ -127,6 +127,8 @@ static __inline__ void clear_bit(int nr, volatile void * addr) :"Ir" (nr)); } +extern start_info_t *xen_start_info; + #endif /* !__ASSEMBLY__ */ #endif /* _MACHINE_XEN_XEN_OS_H_ */ diff --git a/sys/i386/include/xen/xen-os.h b/sys/i386/include/xen/xen-os.h index 9b9b63ff0a58..f081dc4f1a6e 100644 --- a/sys/i386/include/xen/xen-os.h +++ b/sys/i386/include/xen/xen-os.h @@ -44,6 +44,8 @@ static inline void rep_nop(void) } #define cpu_relax() rep_nop() +extern start_info_t *xen_start_info; + /* This is a barrier for the compiler only, NOT the processor! */ #define barrier() __asm__ __volatile__("": : :"memory") diff --git a/sys/xen/hypervisor.h b/sys/xen/hypervisor.h index 42cdb3bcf5ee..96e558222982 100644 --- a/sys/xen/hypervisor.h +++ b/sys/xen/hypervisor.h @@ -52,8 +52,6 @@ #define is_initial_xendomain() 0 #endif -extern start_info_t *xen_start_info; - extern uint64_t get_system_time(int ticks); static inline int