[EMAIL PROTECTED] writes:
> SYMBOL_NAME(sys_syscall):
>       eor     r6, r0, #OS_NUMBER << 20
>       cmp     r6, #NR_syscalls        @ check range
>       add     sp, sp, #4              @ take of the save of our r4
>       ldmib   sp, {r0 - r4}           @ get our args
>       str     r4, [sp, #-4]!          @ Put our arg on the stack
>       ldrle   pc, [r5, r6, lsl #2]
>       mov     r0, #-ENOSYS
>       mov     pc, lr
> 
> This has worked for me.  Replace the beginning of sys_syscall() in
> arch/arm/kernel/entry-common.S with what I have above, and it should
> work.

No!  Don't add sp, sp, #4 - you'll end up corrupting the kernel stacks/
other pages!  Do it the way I said, and you'll have a more fruitful life!
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        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