aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-04-25 07:48:54 -0400
committerAlexander Graf <agraf@suse.de>2012-05-06 10:19:08 -0400
commit3d4c6826ed2a28e69e8ee14f1d58c4c8622f04b3 (patch)
treeb978d51f503511edf9adfe56d98c9f1ee124ca18 /arch/powerpc
parent185e4188dab6456409cad66c579501dd89487188 (diff)
KVM: PPC: Restrict PPC_[L|ST]D macro to asm code
We only want asm code macros to be accessible from asm code, so #ifdef it depending on it. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/include/asm/kvm_asm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_asm.h b/arch/powerpc/include/asm/kvm_asm.h
index 7d4018dd0e11..76fdcfef0889 100644
--- a/arch/powerpc/include/asm/kvm_asm.h
+++ b/arch/powerpc/include/asm/kvm_asm.h
@@ -20,6 +20,7 @@
20#ifndef __POWERPC_KVM_ASM_H__ 20#ifndef __POWERPC_KVM_ASM_H__
21#define __POWERPC_KVM_ASM_H__ 21#define __POWERPC_KVM_ASM_H__
22 22
23#ifdef __ASSEMBLY__
23#ifdef CONFIG_64BIT 24#ifdef CONFIG_64BIT
24#define PPC_STD(sreg, offset, areg) std sreg, (offset)(areg) 25#define PPC_STD(sreg, offset, areg) std sreg, (offset)(areg)
25#define PPC_LD(treg, offset, areg) ld treg, (offset)(areg) 26#define PPC_LD(treg, offset, areg) ld treg, (offset)(areg)
@@ -27,6 +28,7 @@
27#define PPC_STD(sreg, offset, areg) stw sreg, (offset+4)(areg) 28#define PPC_STD(sreg, offset, areg) stw sreg, (offset+4)(areg)
28#define PPC_LD(treg, offset, areg) lwz treg, (offset+4)(areg) 29#define PPC_LD(treg, offset, areg) lwz treg, (offset+4)(areg)
29#endif 30#endif
31#endif
30 32
31/* IVPR must be 64KiB-aligned. */ 33/* IVPR must be 64KiB-aligned. */
32#define VCPU_SIZE_ORDER 4 34#define VCPU_SIZE_ORDER 4