aboutsummaryrefslogtreecommitdiff
path: root/include/asm-sh/user.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-21 17:28:37 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-01-28 13:18:53 +0900
commit17bfa6397875e6901c3cafdc711437041664d94c (patch)
treeba1bac3002519578f9e528b76b02089b2c085fbc /include/asm-sh/user.h
parentc8eef8800f1c693a2de6374b1948c8ea5e0ad75f (diff)
sh: Special layout for SH-5 stat.h and user.h.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/user.h')
-rw-r--r--include/asm-sh/user.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-sh/user.h b/include/asm-sh/user.h
index d1b8511d9d9..706b1c7baba 100644
--- a/include/asm-sh/user.h
+++ b/include/asm-sh/user.h
@@ -27,12 +27,19 @@
* to write an integer number of pages.
*/
+#if defined(__SH5__) || defined(CONFIG_CPU_SH5)
+struct user fpu_struct {
+ unsigned long fp_regs[32];
+ unsigned int fpscr;
+};
+#else
struct user_fpu_struct {
unsigned long fp_regs[16];
unsigned long xfp_regs[16];
unsigned long fpscr;
unsigned long fpul;
};
+#endif
struct user {
struct pt_regs regs; /* entire machine state */