Skip to content

Commit

Permalink
sh: Fix up unsigned syscall_nr in SH-5 pt_regs.
Browse files Browse the repository at this point in the history
syscall_nr is presently defined as unsigned in the SH-5 pt_regs,
while the syscall restarting code wants it to be signed. Fix this
up, and bring it in line with the other SH parts.

Reported-by: Roel Kluin <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
  • Loading branch information
pmundt committed Apr 27, 2009
1 parent 6b34808 commit ecd4ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
struct pt_regs {
unsigned long long pc;
unsigned long long sr;
unsigned long long syscall_nr;
long long syscall_nr;
unsigned long long regs[63];
unsigned long long tregs[8];
unsigned long long pad[2];
Expand Down

0 comments on commit ecd4ca5

Please sign in to comment.