Module Name: src
Committed By: maxv
Date: Sun May 8 08:22:58 UTC 2016
Modified Files:
src/sys/arch/amd64/amd64: locore.S
Log Message:
Use killkpt for the PML4 entries as well.
To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/amd64/amd64/locore.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/amd64/locore.S
diff -u src/sys/arch/amd64/amd64/locore.S:1.84 src/sys/arch/amd64/amd64/locore.S:1.85
--- src/sys/arch/amd64/amd64/locore.S:1.84 Sat May 7 11:49:21 2016
+++ src/sys/arch/amd64/amd64/locore.S Sun May 8 08:22:58 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.84 2016/05/07 11:49:21 maxv Exp $ */
+/* $NetBSD: locore.S,v 1.85 2016/05/08 08:22:58 maxv Exp $ */
/*
* Copyright-o-rama!
@@ -783,9 +783,7 @@ longmode_hi:
movq $NKL4_KIMG_ENTRIES,%rcx
leaq (PROC0_PML4_OFF)(%rsi),%rbx /* old, phys address of PML4 */
addq %r8,%rbx /* new, virt address of PML4 */
-1: movq $0,(%rbx)
- addq $8,%rbx
- loop 1b
+ killkpt
/* Relocate atdevbase. */
movq $(TABLESIZE+KERNBASE),%rdx