OSDN Git Service

booke/powerpc: define wimge shift mask to fix compilation error
authorBharat Bhushan <r65777@freescale.com>
Tue, 13 May 2014 06:48:22 +0000 (12:18 +0530)
committerScott Wood <scottwood@freescale.com>
Wed, 25 Jun 2014 23:49:39 +0000 (18:49 -0500)
commit2759a7f13da3470919fe9e95f77ed565fe9d1975
tree430e88bf13561c80afff25e0dc1624840777fdfb
parentc152833949a07f3cde8fa1e34dec80614085a159
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>
arch/powerpc/include/asm/pte-fsl-booke.h