diff options
Diffstat (limited to 'include/asm-arm/assembler.h')
| -rw-r--r-- | include/asm-arm/assembler.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-arm/assembler.h b/include/asm-arm/assembler.h index 69a28f96bee2..f31ac92b6c7f 100644 --- a/include/asm-arm/assembler.h +++ b/include/asm-arm/assembler.h | |||
| @@ -83,10 +83,13 @@ | |||
| 83 | * Save the current IRQ state and disable IRQs. Note that this macro | 83 | * Save the current IRQ state and disable IRQs. Note that this macro |
| 84 | * assumes FIQs are enabled, and that the processor is in SVC mode. | 84 | * assumes FIQs are enabled, and that the processor is in SVC mode. |
| 85 | */ | 85 | */ |
| 86 | .macro save_and_disable_irqs, oldcpsr, temp | 86 | .macro save_and_disable_irqs, oldcpsr |
| 87 | mrs \oldcpsr, cpsr | 87 | mrs \oldcpsr, cpsr |
| 88 | mov \temp, #PSR_I_BIT | MODE_SVC | 88 | #if __LINUX_ARM_ARCH__ >= 6 |
| 89 | msr cpsr_c, \temp | 89 | cpsid i |
| 90 | #else | ||
| 91 | msr cpsr_c, #PSR_I_BIT | MODE_SVC | ||
| 92 | #endif | ||
| 90 | .endm | 93 | .endm |
| 91 | 94 | ||
| 92 | /* | 95 | /* |
