diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-18 15:13:45 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-18 15:13:45 +0100 |
commit | 00c51c29c14611cdb4164fc64e89b6e7ad6c1df2 (patch) | |
tree | 4c4462e5d66a0bc71b12f669a3a3c9a17c682b1d /xen/include/asm-x86/x86_64 | |
parent | c12bbde846af61d1b8441da6c627181ccbc7a157 (diff) | |
download | xen-00c51c29c14611cdb4164fc64e89b6e7ad6c1df2.tar.gz xen-00c51c29c14611cdb4164fc64e89b6e7ad6c1df2.tar.bz2 xen-00c51c29c14611cdb4164fc64e89b6e7ad6c1df2.zip |
x86: Dynamically allocate percpu data area when a CPU comes online.
At the same time, the data area starts life zeroed.
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.h | 2 |
1 files changed, 1 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 328c5263aa..df1343f607 100644 --- a/xen/include/asm-x86/x86_64/asm_defns.h +++ b/xen/include/asm-x86/x86_64/asm_defns.h @@ -68,7 +68,7 @@ movslq VCPU_processor(_cur),_cur; \ pushq %rdx; \ leaq per_cpu__perfcounters(%rip),%rdx; \ - shlq $PERCPU_SHIFT,_cur; \ + movq __per_cpu_offset(,_cur,8),_cur; \ addq %rdx,_cur; \ popq %rdx; \ incl _name*4(_cur,_idx,4); \ |