diff options
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/asm-compat.h | 9 | ||||
-rw-r--r-- | arch/powerpc/include/asm/ppc_asm.h | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/asm-compat.h b/arch/powerpc/include/asm/asm-compat.h index 6e82f5f9a6fd..4b237aa35660 100644 --- a/arch/powerpc/include/asm/asm-compat.h +++ b/arch/powerpc/include/asm/asm-compat.h | |||
@@ -32,6 +32,15 @@ | |||
32 | #define PPC_MTOCRF(FXM, RS) MTOCRF((FXM), RS) | 32 | #define PPC_MTOCRF(FXM, RS) MTOCRF((FXM), RS) |
33 | #define PPC_LR_STKOFF 16 | 33 | #define PPC_LR_STKOFF 16 |
34 | #define PPC_MIN_STKFRM 112 | 34 | #define PPC_MIN_STKFRM 112 |
35 | |||
36 | #ifdef __BIG_ENDIAN__ | ||
37 | #define LDX_BE stringify_in_c(ldx) | ||
38 | #define STDX_BE stringify_in_c(stdx) | ||
39 | #else | ||
40 | #define LDX_BE stringify_in_c(ldbrx) | ||
41 | #define STDX_BE stringify_in_c(stdbrx) | ||
42 | #endif | ||
43 | |||
35 | #else /* 32-bit */ | 44 | #else /* 32-bit */ |
36 | 45 | ||
37 | /* operations for longs and pointers */ | 46 | /* operations for longs and pointers */ |
diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h index b5c85f18faee..4ebb4f8f4188 100644 --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/powerpc/include/asm/ppc_asm.h | |||
@@ -54,7 +54,8 @@ BEGIN_FW_FTR_SECTION; \ | |||
54 | /* from user - see if there are any DTL entries to process */ \ | 54 | /* from user - see if there are any DTL entries to process */ \ |
55 | ld r10,PACALPPACAPTR(r13); /* get ptr to VPA */ \ | 55 | ld r10,PACALPPACAPTR(r13); /* get ptr to VPA */ \ |
56 | ld r11,PACA_DTL_RIDX(r13); /* get log read index */ \ | 56 | ld r11,PACA_DTL_RIDX(r13); /* get log read index */ \ |
57 | ld r10,LPPACA_DTLIDX(r10); /* get log write index */ \ | 57 | addi r10,r10,LPPACA_DTLIDX; \ |
58 | LDX_BE r10,0,r10; /* get log write index */ \ | ||
58 | cmpd cr1,r11,r10; \ | 59 | cmpd cr1,r11,r10; \ |
59 | beq+ cr1,33f; \ | 60 | beq+ cr1,33f; \ |
60 | bl .accumulate_stolen_time; \ | 61 | bl .accumulate_stolen_time; \ |