search for: __var_addr

Displaying 1 result from an estimated 1 matches for "__var_addr".

2012 Aug 10
0
[PATCH v2 3/6] x86/xen: Read variables from dynamically allocated per_cpu data
...-29 16:59:18.000000000 +0200 +++ crash-6.0.8/xen_hyper_defs.h 2012-07-05 15:50:19.000000000 +0200 @@ -136,7 +136,13 @@ typedef uint32_t Elf_Word; #if defined(X86) || defined(X86_64) #define xen_hyper_per_cpu(var, cpu) \ - ((ulong)(var) + (((ulong)(cpu))<<xht->percpu_shift)) + ({ ulong __var_addr; \ + if (xht->__per_cpu_offset) \ + __var_addr = (xht->flags & XEN_HYPER_SMP) ? \ + ((ulong)(var) + xht->__per_cpu_offset[cpu]) : (ulong)(var); \ + else \ + __var_addr = (ulong)(var) + ((ulong)(cpu) << xht->percpu_shift); \ + __var_addr; }) #elif defined(IA64) #...