[pre-2.1.125-2] Page fault during boot.

Niels Kristian Bech Jensen (nkbj@image.dk)
Wed, 7 Oct 1998 08:14:49 +0200 (CEST)


pre-patch-2.1.125-2 page faults during boot on my 486 UP system. It
happens when the boot messages reach this line (it's the last one in the
output - the error message is the one in the patch below):

Checking if this processor honours the WP bit even in supervisor mode...

This patch makes the kernel work (I doubt it's the correct fix but maybe
someone who knows the mm code can take it from here.)

diff -urN linux-pre-2.1.125-2/arch/i386/mm/fault.c linux/arch/i386/mm/fault.c
--- linux-pre-2.1.125-2/arch/i386/mm/fault.c Wed Oct 7 07:22:32 1998
+++ linux/arch/i386/mm/fault.c Wed Oct 7 07:25:42 1998
@@ -103,7 +103,7 @@

tsk = current;
mm = tsk->mm;
- if (in_interrupt() || mm == &init_mm)
+ if (in_interrupt())
die("page fault without a user context",regs,error_code);

down(&mm->mmap_sem);

--
Niels Kristian Bech Jensen - nkbj@image.dk - http://www.image.dk/~nkbj/

---------->> Stop software piracy --- use free software! <<----------

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/