diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-05 21:45:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-05 21:45:06 -0500 |
commit | 7a1fcd5f5130f173b5e824135735ec58f245563e (patch) | |
tree | fc21e9f5592ef58a5d98a4bf1ccd6f44010cbca3 /arch/sparc/kernel/muldiv.c | |
parent | 15b0669072127f282896b3bef2e9df4ec5d7264f (diff) | |
parent | 4696b64d234b84b5b70ffd49a76833aa5c49cb61 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6: (30 commits)
sparc: Fix minor SPARC32 compile error
sparc: Remove reg*.h from Kbuild
sparc: Clean arch-specific code in prom_common.c
sparc: Kill asm/reg*.h
sparc: Use 64BIT config entry
MAINTAINERS: update sparc maintainer
sparc: unify ipcbuf.h
sparc: Update 64-bit defconfig.
sparc: remove NO_PROC_ID - it is no longer used
sparc: drop get_tbr() in traps.h
sparc: fix warning in userspace header traps.h
sparc: fix warnings in userspace header byteorder.h
sparc: fix warning in userspace header jsflash.h
sparc: unify openprom.h
sparc64: delete unused linux_prom64_ranges from openprom_64.h
sparc: prepare openprom for unification
sparc: remove linux_prom_pci_assigned_addresses from openprom_32.h
sparc: remove ebus definitions from openprom*.h
sparc: unify siginfo.h
sparc: unify ptrace.h
...
Diffstat (limited to 'arch/sparc/kernel/muldiv.c')
-rw-r--r-- | arch/sparc/kernel/muldiv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/kernel/muldiv.c b/arch/sparc/kernel/muldiv.c index ba960c02bb55..6ce1021d487c 100644 --- a/arch/sparc/kernel/muldiv.c +++ b/arch/sparc/kernel/muldiv.c | |||
@@ -60,7 +60,7 @@ static inline void maybe_flush_windows(unsigned int rs1, unsigned int rs2, | |||
60 | } | 60 | } |
61 | 61 | ||
62 | #define fetch_reg(reg, regs) ({ \ | 62 | #define fetch_reg(reg, regs) ({ \ |
63 | struct reg_window __user *win; \ | 63 | struct reg_window32 __user *win; \ |
64 | register unsigned long ret; \ | 64 | register unsigned long ret; \ |
65 | \ | 65 | \ |
66 | if (!(reg)) ret = 0; \ | 66 | if (!(reg)) ret = 0; \ |
@@ -68,7 +68,7 @@ static inline void maybe_flush_windows(unsigned int rs1, unsigned int rs2, | |||
68 | ret = regs->u_regs[(reg)]; \ | 68 | ret = regs->u_regs[(reg)]; \ |
69 | } else { \ | 69 | } else { \ |
70 | /* Ho hum, the slightly complicated case. */ \ | 70 | /* Ho hum, the slightly complicated case. */ \ |
71 | win = (struct reg_window __user *)regs->u_regs[UREG_FP];\ | 71 | win = (struct reg_window32 __user *)regs->u_regs[UREG_FP];\ |
72 | if (get_user (ret, &win->locals[(reg) - 16])) return -1;\ | 72 | if (get_user (ret, &win->locals[(reg) - 16])) return -1;\ |
73 | } \ | 73 | } \ |
74 | ret; \ | 74 | ret; \ |
@@ -77,7 +77,7 @@ static inline void maybe_flush_windows(unsigned int rs1, unsigned int rs2, | |||
77 | static inline int | 77 | static inline int |
78 | store_reg(unsigned int result, unsigned int reg, struct pt_regs *regs) | 78 | store_reg(unsigned int result, unsigned int reg, struct pt_regs *regs) |
79 | { | 79 | { |
80 | struct reg_window __user *win; | 80 | struct reg_window32 __user *win; |
81 | 81 | ||
82 | if (!reg) | 82 | if (!reg) |
83 | return 0; | 83 | return 0; |
@@ -86,7 +86,7 @@ store_reg(unsigned int result, unsigned int reg, struct pt_regs *regs) | |||
86 | return 0; | 86 | return 0; |
87 | } else { | 87 | } else { |
88 | /* need to use put_user() in this case: */ | 88 | /* need to use put_user() in this case: */ |
89 | win = (struct reg_window __user *) regs->u_regs[UREG_FP]; | 89 | win = (struct reg_window32 __user *) regs->u_regs[UREG_FP]; |
90 | return (put_user(result, &win->locals[reg - 16])); | 90 | return (put_user(result, &win->locals[reg - 16])); |
91 | } | 91 | } |
92 | } | 92 | } |