patch-2.4.4 linux/arch/arm/kernel/fiq.c
Next file: linux/arch/arm/kernel/head-armo.S
Previous file: linux/arch/arm/kernel/entry-common.S
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Thu Apr 12 12:20:31 2001
- Orig file:
v2.4.3/linux/arch/arm/kernel/fiq.c
- Orig date:
Thu Feb 8 16:32:44 2001
diff -u --recursive --new-file v2.4.3/linux/arch/arm/kernel/fiq.c linux/arch/arm/kernel/fiq.c
@@ -124,7 +124,7 @@
#ifdef CONFIG_CPU_26
"mov %0, pc
bic %1, %0, #0x3
- orr %1, %1, #0x0c000001
+ orr %1, %1, %3
teqp %1, #0 @ select FIQ mode
mov r0, r0
ldmia %2, {r8 - r14}
@@ -133,7 +133,7 @@
#endif
#ifdef CONFIG_CPU_32
"mrs %0, cpsr
- mov %1, #0xc1
+ mov %1, %3
msr cpsr_c, %1 @ select FIQ mode
mov r0, r0
ldmia %2, {r8 - r14}
@@ -141,7 +141,7 @@
mov r0, r0"
#endif
: "=&r" (tmp), "=&r" (tmp2)
- : "r" (®s->ARM_r8)
+ : "r" (®s->ARM_r8), "I" (I_BIT | F_BIT | FIQ_MODE)
/* These registers aren't modified by the above code in a way
visible to the compiler, but we mark them as clobbers anyway
so that GCC won't put any of the input or output operands in
@@ -156,7 +156,7 @@
#ifdef CONFIG_CPU_26
"mov %0, pc
bic %1, %0, #0x3
- orr %1, %1, #0x0c000001
+ orr %1, %1, %3
teqp %1, #0 @ select FIQ mode
mov r0, r0
stmia %2, {r8 - r14}
@@ -165,7 +165,7 @@
#endif
#ifdef CONFIG_CPU_32
"mrs %0, cpsr
- mov %1, #0xc1
+ mov %1, %3
msr cpsr_c, %1 @ select FIQ mode
mov r0, r0
stmia %2, {r8 - r14}
@@ -173,7 +173,7 @@
mov r0, r0"
#endif
: "=&r" (tmp), "=&r" (tmp2)
- : "r" (®s->ARM_r8)
+ : "r" (®s->ARM_r8), "I" (I_BIT | F_BIT | FIQ_MODE)
/* These registers aren't modified by the above code in a way
visible to the compiler, but we mark them as clobbers anyway
so that GCC won't put any of the input or output operands in
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)