aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/x86_64
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-22 07:19:38 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-22 07:19:38 +0100
commit39fcc064b1dee4c80999fd54666fbbb716301391 (patch)
tree702051ba5fa84fd86544588e67c71e99f2b2c07a /xen/include/asm-x86/x86_64
parent26d77199f89e6bca0376bc5beae3f53e5da85ef6 (diff)
downloadxen-39fcc064b1dee4c80999fd54666fbbb716301391.tar.gz
xen-39fcc064b1dee4c80999fd54666fbbb716301391.tar.bz2
xen-39fcc064b1dee4c80999fd54666fbbb716301391.zip
perfc: Fix x86_64 build with perfc_arrays=y
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/x86_64')
-rw-r--r--xen/include/asm-x86/x86_64/asm_defns.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/asm-x86/x86_64/asm_defns.h b/xen/include/asm-x86/x86_64/asm_defns.h
index df1343f607..7a8cfdbb6a 100644
--- a/xen/include/asm-x86/x86_64/asm_defns.h
+++ b/xen/include/asm-x86/x86_64/asm_defns.h
@@ -67,8 +67,9 @@
pushq _cur; \
movslq VCPU_processor(_cur),_cur; \
pushq %rdx; \
+ leaq __per_cpu_offset(%rip),%rdx; \
+ movq (%rdx,_cur,8),_cur; \
leaq per_cpu__perfcounters(%rip),%rdx; \
- movq __per_cpu_offset(,_cur,8),_cur; \
addq %rdx,_cur; \
popq %rdx; \
incl _name*4(_cur,_idx,4); \