Philip Blundell writes:
> >The SP is pointing at the stacked r0, hence:
> 
> It's that bit that I didn't agree with.  It looked to me as though SP was 
> pointing at the copy of R4 that had been pushed by the earlier syscall entry 
> (ie the fifth argument to sys_syscall).  But maybe I overlooked something.

Argh, looks like you're right.

The code around sys_syscall should read:

        add     ip, sp, #4
        ldmleib ip, {r0 - r4}

This will be fixed in my next patch (why hasn't anything complained about
it?)
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        Russell King       [EMAIL PROTECTED]      --- ---
  | | | |  http://www.arm.linux.org.uk/~rmk/armlinux.html    /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to