git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
arch
/
ppc
/
kernel
/
vecemu.c
diff --git
a/arch/ppc/kernel/vecemu.c
b/arch/ppc/kernel/vecemu.c
index
1430ef5
..
604d094
100644
(file)
--- a/
arch/ppc/kernel/vecemu.c
+++ b/
arch/ppc/kernel/vecemu.c
@@
-256,14
+256,13
@@
static unsigned int rfin(unsigned int x)
return (x + half) & ~(0x7fffff >> exp);
}
return (x + half) & ~(0x7fffff >> exp);
}
-int
-emulate_altivec(struct pt_regs *regs)
+int emulate_altivec(struct pt_regs *regs)
{
unsigned int instr, i;
unsigned int va, vb, vc, vd;
vector128 *vrs;
{
unsigned int instr, i;
unsigned int va, vb, vc, vd;
vector128 *vrs;
- if (get_user(instr, (unsigned int *) regs->nip))
+ if (get_user(instr, (unsigned int
__user
*) regs->nip))
return -EFAULT;
if ((instr >> 26) != 4)
return -EINVAL; /* not an altivec instruction */
return -EFAULT;
if ((instr >> 26) != 4)
return -EINVAL; /* not an altivec instruction */