Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24001
b: refs/heads/master
c: 9c42954
h: refs/heads/master
i:
  23999: dceb140
v: v3
  • Loading branch information
Russell King authored and Russell King committed Mar 23, 2006
1 parent 3c9ca76 commit 7ebd016
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d420896256a4bffe44202f282fbdd4c74d779a8
refs/heads/master: 9c42954dfd50d02963cd453fb84bfef3967af2f0
18 changes: 0 additions & 18 deletions trunk/arch/arm/kernel/entry-header.S
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,6 @@
#endif
.endm

#if __LINUX_ARM_ARCH__ >= 6
.macro disable_irq
cpsid i
.endm

.macro enable_irq
cpsie i
.endm
#else
.macro disable_irq
msr cpsr_c, #PSR_I_BIT | SVC_MODE
.endm

.macro enable_irq
msr cpsr_c, #SVC_MODE
.endm
#endif

.macro get_thread_info, rd
mov \rd, sp, lsr #13
mov \rd, \rd, lsl #13
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/vfp/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/linkage.h>
#include <linux/init.h>
#include <asm/asm-offsets.h>
#include <asm/assembler.h>
#include <asm/vfpmacros.h>

.globl do_vfp
Expand Down
27 changes: 22 additions & 5 deletions trunk/include/asm-arm/assembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,33 @@
instr regs

/*
* Save the current IRQ state and disable IRQs. Note that this macro
* assumes FIQs are enabled, and that the processor is in SVC mode.
* Enable and disable interrupts
*/
.macro save_and_disable_irqs, oldcpsr
mrs \oldcpsr, cpsr
#if __LINUX_ARM_ARCH__ >= 6
.macro disable_irq
cpsid i
.endm

.macro enable_irq
cpsie i
.endm
#else
msr cpsr_c, #PSR_I_BIT | MODE_SVC
.macro disable_irq
msr cpsr_c, #PSR_I_BIT | SVC_MODE
.endm

.macro enable_irq
msr cpsr_c, #SVC_MODE
.endm
#endif

/*
* Save the current IRQ state and disable IRQs. Note that this macro
* assumes FIQs are enabled, and that the processor is in SVC mode.
*/
.macro save_and_disable_irqs, oldcpsr
mrs \oldcpsr, cpsr
disable_irq
.endm

/*
Expand Down

0 comments on commit 7ebd016

Please sign in to comment.