]> err.no Git - linux-2.6/commit
[ARM] 3626/1: ARM EABI: fix syscall restarting
authorNicolas Pitre <nico@cam.org>
Thu, 22 Jun 2006 21:18:45 +0000 (22:18 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 22 Jun 2006 21:18:45 +0000 (22:18 +0100)
commitf606a6ff222dc7dceeb4d0e214ce4f55d9c6b0e6
tree6a44374b8085d5523743268f67bae7fd70e25a43
parent92b7eb8ffc0741f1fd5fbd5458a466d608310442
[ARM] 3626/1: ARM EABI: fix syscall restarting

Patch from Nicolas Pitre

The RESTARTBLOCK case currently store some code on the stack to invoke
sys_restart_syscall.  However this is ABI dependent and there is a
mismatch with the way __NR_restart_syscall gets defined when the kernel
is compiled for EABI.

There is also a long standing bug in the thumb case since with OABI the
__NR_restart_syscall value includes __NR_SYSCALL_BASE which should not
be the case for Thumb syscalls.

Credits to Yauheni Kaliuta <yauheni.kaliuta@gmail.com> for finding the
EABI bug.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/signal.c