On Fri, 2015-12-18 at 16:08 +0000, Malcolm Crossley wrote: > diff --git a/xen/include/asm-arm/percpu.h b/xen/include/asm-arm/percpu.h > index 71e7649..c308a56 100644 > --- a/xen/include/asm-arm/percpu.h > +++ b/xen/include/asm-arm/percpu.h > @@ -27,6 +27,11 @@ void percpu_init_areas(void); > #define __get_cpu_var(var) \ > (*RELOC_HIDE(&per_cpu__##var, READ_SYSREG(TPIDR_EL2))) > > +#define per_cpu_ptr(var, cpu) \ > + (*RELOC_HIDE(&var, __per_cpu_offset[cpu])) > +#define __get_cpu_ptr(var) \ > + (*RELOC_HIDE(&var, READ_SYSREG(TPIDR_EL2))) > + > #define DECLARE_PER_CPU(type, name) extern __typeof__(type) > per_cpu__##name >
For ARM: Acked-by :Ian Campbell <ian.campb...@citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel