patch-2.1.121 linux/arch/i386/mm/fault.c
Next file: linux/arch/i386/mm/init.c
Previous file: linux/arch/i386/math-emu/get_address.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Wed Sep 9 08:56:58 1998
- Orig file:
v2.1.120/linux/arch/i386/mm/fault.c
- Orig date:
Mon Aug 3 17:48:26 1998
diff -u --recursive --new-file v2.1.120/linux/arch/i386/mm/fault.c linux/arch/i386/mm/fault.c
@@ -6,7 +6,6 @@
#include <linux/signal.h>
#include <linux/sched.h>
-#include <linux/head.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
@@ -76,7 +75,8 @@
return 0;
}
-asmlinkage void do_invalid_op (struct pt_regs *, unsigned long);
+asmlinkage void do_invalid_op(struct pt_regs *, unsigned long);
+extern unsigned long idt;
/*
* This routine handles page faults. It determines the address,
@@ -186,7 +186,7 @@
if (boot_cpu_data.f00f_bug) {
unsigned long nr;
- nr = (address - (unsigned long) idt) >> 3;
+ nr = (address - idt) >> 3;
if (nr == 6) {
do_invalid_op(regs, 0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov