summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/pte-fsl-booke.h
diff options
context:
space:
mode:
authorBharat Bhushan <r65777@freescale.com>2014-05-13 10:48:22 +0400
committerScott Wood <scottwood@freescale.com>2014-06-26 03:49:39 +0400
commit2759a7f13da3470919fe9e95f77ed565fe9d1975 (patch)
tree430e88bf13561c80afff25e0dc1624840777fdfb /arch/powerpc/include/asm/pte-fsl-booke.h
parentc152833949a07f3cde8fa1e34dec80614085a159 (diff)
downloadlinux-2759a7f13da3470919fe9e95f77ed565fe9d1975.tar.xz
booke/powerpc: define wimge shift mask to fix compilation error
This fixes below compilation error on SOCs where CONFIG_PHYS_64BIT is not defined: arch/powerpc/kvm/e500_mmu_host.c: In function 'kvmppc_e500_shadow_map': | arch/powerpc/kvm/e500_mmu_host.c:631:20: error: 'PTE_WIMGE_SHIFT' undeclared (first use in this function) | wimg = (*ptep >> PTE_WIMGE_SHIFT) & MAS2_WIMGE_MASK; | ^ | arch/powerpc/kvm/e500_mmu_host.c:631:20: note: each undeclared identifier is reported only once for each function it appears in | make[1]: *** [arch/powerpc/kvm/e500_mmu_host.o] Error 1 Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/include/asm/pte-fsl-booke.h')
-rw-r--r--arch/powerpc/include/asm/pte-fsl-booke.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pte-fsl-booke.h b/arch/powerpc/include/asm/pte-fsl-booke.h
index 2c12be5f677a..e84dd7ed505e 100644
--- a/arch/powerpc/include/asm/pte-fsl-booke.h
+++ b/arch/powerpc/include/asm/pte-fsl-booke.h
@@ -37,5 +37,7 @@
#define _PMD_PRESENT_MASK (PAGE_MASK)
#define _PMD_BAD (~PAGE_MASK)
+#define PTE_WIMGE_SHIFT (6)
+
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_PTE_FSL_BOOKE_H */