]> git.karo-electronics.de Git - karo-tx-linux.git/commit
openrisc: sanitize use of orig_gpr11
authorJonas Bonn <jonas@southpole.se>
Fri, 2 Mar 2012 09:05:24 +0000 (10:05 +0100)
committerJonas Bonn <jonas@southpole.se>
Tue, 6 Mar 2012 09:37:00 +0000 (10:37 +0100)
commit6cbe5e95267449ea0b79c0b049342409949da3ac
tree21243a6c899b27f67338d77a28ccbe0f473272bc
parent2f099a280e92c259598d8ed8da82c7ec2dd49845
openrisc: sanitize use of orig_gpr11

The pt_regs struct had both a 'syscallno' field and an 'orig_gpr11' field
and it wasn't really clear how these were supposed to be used.  This patch
removes the syscallno field altogether and makes orig_gpr11 work more
like other architectures: keep track of syscall number in progress or
hold -1 for non-syscall exceptions.

Signed-off-by: Jonas Bonn <jonas@southpole.se>
arch/openrisc/include/asm/ptrace.h
arch/openrisc/include/asm/syscall.h
arch/openrisc/kernel/entry.S
arch/openrisc/kernel/ptrace.c
arch/openrisc/kernel/signal.c
arch/openrisc/kernel/traps.c