mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 21:52:04 +00:00
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>
This commit is contained in:
parent
185e4188da
commit
3d4c6826ed
@ -20,6 +20,7 @@
|
|||||||
#ifndef __POWERPC_KVM_ASM_H__
|
#ifndef __POWERPC_KVM_ASM_H__
|
||||||
#define __POWERPC_KVM_ASM_H__
|
#define __POWERPC_KVM_ASM_H__
|
||||||
|
|
||||||
|
#ifdef __ASSEMBLY__
|
||||||
#ifdef CONFIG_64BIT
|
#ifdef CONFIG_64BIT
|
||||||
#define PPC_STD(sreg, offset, areg) std sreg, (offset)(areg)
|
#define PPC_STD(sreg, offset, areg) std sreg, (offset)(areg)
|
||||||
#define PPC_LD(treg, offset, areg) ld treg, (offset)(areg)
|
#define PPC_LD(treg, offset, areg) ld treg, (offset)(areg)
|
||||||
@ -27,6 +28,7 @@
|
|||||||
#define PPC_STD(sreg, offset, areg) stw sreg, (offset+4)(areg)
|
#define PPC_STD(sreg, offset, areg) stw sreg, (offset+4)(areg)
|
||||||
#define PPC_LD(treg, offset, areg) lwz treg, (offset+4)(areg)
|
#define PPC_LD(treg, offset, areg) lwz treg, (offset+4)(areg)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* IVPR must be 64KiB-aligned. */
|
/* IVPR must be 64KiB-aligned. */
|
||||||
#define VCPU_SIZE_ORDER 4
|
#define VCPU_SIZE_ORDER 4
|
||||||
|
Loading…
Reference in New Issue
Block a user