patch-2.3.43 linux/arch/i386/kernel/setup.c
Next file: linux/arch/i386/kernel/smp.c
Previous file: linux/arch/i386/kernel/process.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Feb 7 20:01:14 2000
- Orig file:
v2.3.42/linux/arch/i386/kernel/setup.c
- Orig date:
Fri Jan 21 18:19:16 2000
diff -u --recursive --new-file v2.3.42/linux/arch/i386/kernel/setup.c linux/arch/i386/kernel/setup.c
@@ -75,7 +75,7 @@
#include <asm/e820.h>
#include <asm/dma.h>
#include <asm/mpspec.h>
-
+#include <asm/mmu_context.h>
/*
* Machine setup..
*/
@@ -1543,6 +1543,10 @@
*/
atomic_inc(&init_mm.mm_count);
current->active_mm = &init_mm;
+ if(current->mm)
+ BUG();
+ enter_lazy_tlb(&init_mm, current, nr);
+
t->esp0 = current->thread.esp0;
set_tss_desc(nr,t);
gdt_table[__TSS(nr)].b &= 0xfffffdff;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)