patch-2.4.3 linux/arch/ppc/kernel/traps.c
Next file: linux/arch/ppc/mm/fault.c
Previous file: linux/arch/ppc/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sat Mar 3 10:52:14 2001
- Orig file:
v2.4.2/linux/arch/ppc/kernel/traps.c
- Orig date:
Wed Feb 21 18:20:14 2001
diff -u --recursive --new-file v2.4.2/linux/arch/ppc/kernel/traps.c linux/arch/ppc/kernel/traps.c
@@ -237,7 +237,7 @@
return retval;
if (get_user(instword, (uint *)(regs->nip)))
- return EFAULT;
+ return -EFAULT;
/* Emulate the mfspr rD, PVR.
*/
@@ -281,7 +281,7 @@
/* Try to emulate it if we should. */
int errcode;
if ((errcode = emulate_instruction(regs))) {
- if (errcode == EFAULT)
+ if (errcode == -EFAULT)
_exception(SIGBUS, regs);
else
_exception(SIGILL, regs);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)