powerpc/8xx: Use symbolic names for DSISR bits in DSI
Use symbolic names for DSISR bits in DSI Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
3ee87674e0
commit
4915349b10
|
@ -595,7 +595,7 @@ DARFixed:/* Return from dcbx instruction bug workaround */
|
||||||
mfspr r5,SPRN_DSISR
|
mfspr r5,SPRN_DSISR
|
||||||
stw r5,_DSISR(r11)
|
stw r5,_DSISR(r11)
|
||||||
mfspr r4,SPRN_DAR
|
mfspr r4,SPRN_DAR
|
||||||
andis. r10,r5,0x4000
|
andis. r10,r5,DSISR_NOHPTE@h
|
||||||
beq+ 1f
|
beq+ 1f
|
||||||
tlbie r4
|
tlbie r4
|
||||||
dtlbie:
|
dtlbie:
|
||||||
|
|
|
@ -354,7 +354,7 @@ static void sanity_check_fault(bool is_write, unsigned long error_code) { }
|
||||||
#else
|
#else
|
||||||
#define page_fault_is_write(__err) ((__err) & DSISR_ISSTORE)
|
#define page_fault_is_write(__err) ((__err) & DSISR_ISSTORE)
|
||||||
#if defined(CONFIG_PPC_8xx)
|
#if defined(CONFIG_PPC_8xx)
|
||||||
#define page_fault_is_bad(__err) ((__err) & 0x10000000)
|
#define page_fault_is_bad(__err) ((__err) & DSISR_NOEXEC_OR_G)
|
||||||
#elif defined(CONFIG_PPC64)
|
#elif defined(CONFIG_PPC64)
|
||||||
#define page_fault_is_bad(__err) ((__err) & DSISR_BAD_FAULT_64S)
|
#define page_fault_is_bad(__err) ((__err) & DSISR_BAD_FAULT_64S)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue