summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
commit27cfca1ec98e91261b1a5355d10a8996464b63af (patch)
tree8e895a53e372fa682b4c0a585b9377d67ed70d0e /arch/mips/mm
parent6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff)
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'arch/mips/mm')
-rw-r--r--arch/mips/mm/.cvsignore1
-rw-r--r--arch/mips/mm/fault.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/mm/.cvsignore b/arch/mips/mm/.cvsignore
index 4671378ae..857dd22e9 100644
--- a/arch/mips/mm/.cvsignore
+++ b/arch/mips/mm/.cvsignore
@@ -1 +1,2 @@
.depend
+.*.flags
diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c
index 8385eb22f..98d707542 100644
--- a/arch/mips/mm/fault.c
+++ b/arch/mips/mm/fault.c
@@ -16,6 +16,7 @@
#include <linux/smp.h>
#include <linux/smp_lock.h>
+#include <asm/hardirq.h>
#include <asm/pgtable.h>
#include <asm/mmu_context.h>
#include <asm/system.h>
@@ -43,6 +44,8 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long writeaccess,
struct mm_struct *mm = tsk->mm;
unsigned long fixup;
+ if (local_irq_count[smp_processor_id()] != 0)
+ die_if_kernel("page fault from irq handler", regs, writeaccess);
lock_kernel();
#if 0
printk("[%s:%d:%08lx:%ld:%08lx]\n", current->comm, current->pid,