patch-2.4.8 linux/include/asm-i386/mmu_context.h
Next file: linux/include/asm-i386/page.h
Previous file: linux/include/asm-i386/mmu.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Aug 10 18:13:47 2001
- Orig file:
v2.4.7/linux/include/asm-i386/mmu_context.h
- Orig date:
Tue Aug 7 12:48:43 2001
diff -u --recursive --new-file v2.4.7/linux/include/asm-i386/mmu_context.h linux/include/asm-i386/mmu_context.h
@@ -40,6 +40,7 @@
cpu_tlbstate[cpu].active_mm = next;
#endif
set_bit(cpu, &next->cpu_vm_mask);
+ set_bit(cpu, &next->context.cpuvalid);
/* Re-load page tables */
asm volatile("movl %0,%%cr3": :"r" (__pa(next->pgd)));
}
@@ -54,6 +55,8 @@
*/
local_flush_tlb();
}
+ if (!test_and_set_bit(cpu, &next->context.cpuvalid))
+ load_LDT(next);
}
#endif
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)