patch-2.4.10 linux/arch/mips64/kernel/unaligned.c
Next file: linux/arch/mips64/lib/csum_partial.S
Previous file: linux/arch/mips64/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Sun Sep 9 10:43:01 2001
- Orig file:
v2.4.9/linux/arch/mips64/kernel/unaligned.c
- Orig date:
Wed Jul 25 17:10:18 2001
diff -u --recursive --new-file v2.4.9/linux/arch/mips64/kernel/unaligned.c linux/arch/mips64/kernel/unaligned.c
@@ -72,6 +72,7 @@
* A store crossing a page boundary might be executed only partially.
* Undo the partial store in this case.
*/
+#include <linux/config.h>
#include <linux/mm.h>
#include <linux/signal.h>
#include <linux/smp.h>
@@ -378,7 +379,9 @@
return;
}
+#ifdef CONFIG_PROC_FS
unsigned long unaligned_instructions;
+#endif
asmlinkage void do_ade(struct pt_regs *regs)
{
@@ -399,7 +402,9 @@
goto sigbus;
emulate_load_store_insn(regs, regs->cp0_badvaddr, pc);
+#ifdef CONFIG_PROC_FS
unaligned_instructions++;
+#endif
return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)