From 900fb875386df4fbf9c792c0afa22f0f96fca8d7 Mon Sep 17 00:00:00 2001 From: maxv Date: Sun, 8 May 2016 08:22:58 +0000 Subject: [PATCH] Use killkpt for the PML4 entries as well. --- sys/arch/amd64/amd64/locore.S | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/arch/amd64/amd64/locore.S b/sys/arch/amd64/amd64/locore.S index 1aaf350d8fa9..05b5cb3b8cfc 100644 --- a/sys/arch/amd64/amd64/locore.S +++ b/sys/arch/amd64/amd64/locore.S @@ -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