sh: Fix up unsigned syscall_nr in SH-5 pt_regs.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, April 27, 2009 - 9:00 am

Gitweb:     http://git.kernel.org/linus/ecd4ca52bfdb4108f47aa480781b97f037051a72
Commit:     ecd4ca52bfdb4108f47aa480781b97f037051a72
Parent:     6b3480855aad6e22ca90981a4c7893a7f41ffb47
Author:     Paul Mundt <lethal@linux-sh.org>
AuthorDate: Mon Apr 27 17:05:38 2009 +0900
Committer:  Paul Mundt <lethal@linux-sh.org>
CommitDate: Mon Apr 27 17:05:38 2009 +0900

    sh: Fix up unsigned syscall_nr in SH-5 pt_regs.
    
    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 <roel.kluin@gmail.com>
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
---
 arch/sh/include/asm/ptrace.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/include/asm/ptrace.h b/arch/sh/include/asm/ptrace.h
index d3f6caa..68e20ff 100644
--- a/arch/sh/include/asm/ptrace.h
+++ b/arch/sh/include/asm/ptrace.h
@@ -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];
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sh: Fix up unsigned syscall_nr in SH-5 pt_regs., Linux Kernel Mailing ..., (Mon Apr 27, 9:00 am)