Commit 883aef79 authored by Russell King's avatar Russell King

[ARM] Fix more gcc3 build errors.

parent f73e9f0f
...@@ -112,12 +112,12 @@ void set_fiq_regs(struct pt_regs *regs) ...@@ -112,12 +112,12 @@ void set_fiq_regs(struct pt_regs *regs)
{ {
register unsigned long tmp, tmp2; register unsigned long tmp, tmp2;
__asm__ volatile ( __asm__ volatile (
"mrs %0, cpsr "mrs %0, cpsr\n\
mov %1, %3 mov %1, %3\n\
msr cpsr_c, %1 @ select FIQ mode msr cpsr_c, %1 @ select FIQ mode\n\
mov r0, r0 mov r0, r0\n\
ldmia %2, {r8 - r14} ldmia %2, {r8 - r14}\n\
msr cpsr_c, %0 @ return to SVC mode msr cpsr_c, %0 @ return to SVC mode\n\
mov r0, r0" mov r0, r0"
: "=&r" (tmp), "=&r" (tmp2) : "=&r" (tmp), "=&r" (tmp2)
: "r" (&regs->ARM_r8), "I" (PSR_I_BIT | PSR_F_BIT | FIQ_MODE) : "r" (&regs->ARM_r8), "I" (PSR_I_BIT | PSR_F_BIT | FIQ_MODE)
...@@ -132,12 +132,12 @@ void get_fiq_regs(struct pt_regs *regs) ...@@ -132,12 +132,12 @@ void get_fiq_regs(struct pt_regs *regs)
{ {
register unsigned long tmp, tmp2; register unsigned long tmp, tmp2;
__asm__ volatile ( __asm__ volatile (
"mrs %0, cpsr "mrs %0, cpsr\n\
mov %1, %3 mov %1, %3\n\
msr cpsr_c, %1 @ select FIQ mode msr cpsr_c, %1 @ select FIQ mode\n\
mov r0, r0 mov r0, r0\n\
stmia %2, {r8 - r14} stmia %2, {r8 - r14}\n\
msr cpsr_c, %0 @ return to SVC mode msr cpsr_c, %0 @ return to SVC mode\n\
mov r0, r0" mov r0, r0"
: "=&r" (tmp), "=&r" (tmp2) : "=&r" (tmp), "=&r" (tmp2)
: "r" (&regs->ARM_r8), "I" (PSR_I_BIT | PSR_F_BIT | FIQ_MODE) : "r" (&regs->ARM_r8), "I" (PSR_I_BIT | PSR_F_BIT | FIQ_MODE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment