patch-2.3.48 linux/arch/mips/kernel/unaligned.c
Next file: linux/arch/mips/ld.script.big
Previous file: linux/arch/mips/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 55
- Date:
Thu Feb 24 22:52:30 2000
- Orig file:
v2.3.47/linux/arch/mips/kernel/unaligned.c
- Orig date:
Fri Jun 25 17:40:12 1999
diff -u --recursive --new-file v2.3.47/linux/arch/mips/kernel/unaligned.c linux/arch/mips/kernel/unaligned.c
@@ -1,4 +1,5 @@
-/*
+/* $Id: unaligned.c,v 1.7 1999/12/04 03:59:00 ralf Exp $
+ *
* Handle unaligned accesses by emulation.
*
* This file is subject to the terms and conditions of the GNU General Public
@@ -7,7 +8,7 @@
*
* Copyright (C) 1996, 1998 by Ralf Baechle
*
- * $Id: unaligned.c,v 1.5 1999/05/01 22:40:39 ralf Exp $
+ * $Id: unaligned.c,v 1.7 1999/12/04 03:59:00 ralf Exp $
*
* This file contains exception handler for address error exception with the
* special capability to execute faulting instructions in software. The
@@ -365,19 +366,13 @@
return;
}
- lock_kernel();
send_sig(SIGSEGV, current, 1);
- unlock_kernel();
return;
sigbus:
- lock_kernel();
send_sig(SIGBUS, current, 1);
- unlock_kernel();
return;
sigill:
- lock_kernel();
send_sig(SIGILL, current, 1);
- unlock_kernel();
return;
}
@@ -398,7 +393,7 @@
pc = regs->cp0_epc + ((regs->cp0_cause & CAUSEF_BD) ? 4 : 0);
if (compute_return_epc(regs))
return;
- if ((current->tss.mflags & MF_FIXADE) == 0)
+ if ((current->thread.mflags & MF_FIXADE) == 0)
goto sigbus;
emulate_load_store_insn(regs, regs->cp0_badvaddr, pc);
@@ -407,9 +402,7 @@
return;
sigbus:
- lock_kernel();
force_sig(SIGBUS, current);
- unlock_kernel();
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)