]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen: xen_start_info don't need to be export in common code
authorJulien Grall <julien.grall@linaro.org>
Sun, 1 Jun 2014 18:15:40 +0000 (19:15 +0100)
committerJulien Grall <julien.grall@citrix.com>
Sat, 3 Oct 2015 18:37:17 +0000 (19:37 +0100)
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.

sys/amd64/include/xen/xen-os.h
sys/i386/include/xen/xen-os.h
sys/xen/hypervisor.h

index ee498b9d09acb3f2beb57150a9a4e5afe13838e8..d217ca4608a6224ce28fe6b5ccdc6965bb052e3e 100644 (file)
@@ -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_ */
index 9b9b63ff0a5888d5c03a840b50b45beb3f8e6da9..f081dc4f1a6ed427c04e15731b7084aea090bffa 100644 (file)
@@ -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")
 
index 42cdb3bcf5eefa79b67e9ac7b51d0ea70ba81e21..96e5582229828f422f2bbed64549cd32c3397a52 100644 (file)
@@ -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