Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 Use killkpt for the PML4 entries as well.



details:   https://anonhg.NetBSD.org/src/rev/88998fafab71
branches:  trunk
changeset: 345119:88998fafab71
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun May 08 08:22:58 2016 +0000

description:
Use killkpt for the PML4 entries as well.

diffstat:

 sys/arch/amd64/amd64/locore.S |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 0b2af1fe8322 -r 88998fafab71 sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S     Sun May 08 07:48:24 2016 +0000
+++ b/sys/arch/amd64/amd64/locore.S     Sun May 08 08:22:58 2016 +0000
@@ -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 @@
        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



Home | Main Index | Thread Index | Old Index