[parisc-linux] r3 getting trashed by __wake_up?

Alan Modra amodra@bigpond.net.au
Thu, 19 Jul 2001 20:20:08 +0930


On Thu, Jul 19, 2001 at 01:51:15AM -0600, Grant Grundler wrote:
> 
>   f0:   34 7e 00 80     ldo 40(r3),sp
>   f4:   e8 40 d0 00     ret       
>   f8:   4f c3 3f 81     ldw,mb -40(sp),r3
> 
> Shouldn't sp be restored with "copy r3,sp"?
> And the restore of r3 be "ldw 0(sp),r3"?

No, because then an interrupt might come along and trash 0(sp).  All
the assembly you showed looks good to me.

Alan