Commit 62bc8d64 authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[SPARC64]: Fix inline assembler in init_irqwork_curcpu().

'tmp' cannot be a global register, because we are going
into the interrupt globals by writing to pstate.
Since we did not specify any particular register, gcc
could use anything, and in fact because of this I am
surprised we did not hit this bug earlier.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 78fe824a
......@@ -1112,7 +1112,7 @@ void enable_prom_timer(void)
void init_irqwork_curcpu(void)
{
register struct irq_work_struct *workp asm("o2");
unsigned long tmp;
register unsigned long tmp asm("o3");
int cpu = hard_smp_processor_id();
memset(__irq_work + cpu, 0, sizeof(*workp));
......
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