patch-2.4.23 linux-2.4.23/arch/sparc64/kernel/unaligned.c
Next file: linux-2.4.23/arch/x86_64/Makefile
Previous file: linux-2.4.23/arch/sparc64/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 64
- Date:
2003-11-28 10:26:19.000000000 -0800
- Orig file:
linux-2.4.22/arch/sparc64/kernel/unaligned.c
- Orig date:
2001-04-12 12:10:25.000000000 -0700
diff -urN linux-2.4.22/arch/sparc64/kernel/unaligned.c linux-2.4.23/arch/sparc64/kernel/unaligned.c
@@ -479,7 +479,9 @@
extern void do_fpother(struct pt_regs *regs);
extern void do_privact(struct pt_regs *regs);
-extern void data_access_exception(struct pt_regs *regs);
+extern void data_access_exception(struct pt_regs *regs,
+ unsigned long sfsr,
+ unsigned long sfar);
int handle_ldf_stq(u32 insn, struct pt_regs *regs)
{
@@ -522,14 +524,14 @@
break;
}
default:
- data_access_exception(regs);
+ data_access_exception(regs, 0, addr);
return 1;
}
if (put_user (first >> 32, (u32 *)addr) ||
__put_user ((u32)first, (u32 *)(addr + 4)) ||
__put_user (second >> 32, (u32 *)(addr + 8)) ||
__put_user ((u32)second, (u32 *)(addr + 12))) {
- data_access_exception(regs);
+ data_access_exception(regs, 0, addr);
return 1;
}
} else {
@@ -542,7 +544,7 @@
do_privact(regs);
return 1;
} else if (asi > ASI_SNFL) {
- data_access_exception(regs);
+ data_access_exception(regs, 0, addr);
return 1;
}
switch (insn & 0x180000) {
@@ -559,7 +561,7 @@
err |= __get_user (data[i], (u32 *)(addr + 4*i));
}
if (err && !(asi & 0x2 /* NF */)) {
- data_access_exception(regs);
+ data_access_exception(regs, 0, addr);
return 1;
}
if (asi & 0x8) /* Little */ {
@@ -662,7 +664,7 @@
*(u64 *)(f->regs + freg) = value;
current->thread.fpsaved[0] |= flag;
} else {
-daex: data_access_exception(regs);
+daex: data_access_exception(regs, sfsr, sfar);
return;
}
advance(regs);
@@ -706,7 +708,7 @@
__put_user ((u32)value, (u32 *)(sfar + 4)))
goto daex;
} else {
-daex: data_access_exception(regs);
+daex: data_access_exception(regs, sfsr, sfar);
return;
}
advance(regs);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)