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)
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>

No differences found