Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 need to invalidate TLBs after pmapb...



details:   https://anonhg.NetBSD.org/src/rev/cfc1bff433e0
branches:  trunk
changeset: 445719:cfc1bff433e0
user:      ryo <ryo%NetBSD.org@localhost>
date:      Sat Nov 10 18:29:08 2018 +0000

description:
need to invalidate TLBs after pmapboot_enter(). pmapboot_protect() requires KSEG mappings.

diffstat:

 sys/arch/aarch64/aarch64/aarch64_machdep.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 49275b88525b -r cfc1bff433e0 sys/arch/aarch64/aarch64/aarch64_machdep.c
--- a/sys/arch/aarch64/aarch64/aarch64_machdep.c        Sat Nov 10 16:19:58 2018 +0000
+++ b/sys/arch/aarch64/aarch64/aarch64_machdep.c        Sat Nov 10 18:29:08 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aarch64_machdep.c,v 1.19 2018/11/09 04:05:27 mrg Exp $ */
+/* $NetBSD: aarch64_machdep.c,v 1.20 2018/11/10 18:29:08 ryo Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.19 2018/11/09 04:05:27 mrg Exp $");
+__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.20 2018/11/10 18:29:08 ryo Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -146,6 +146,7 @@
        pmapboot_enter(AARCH64_PA_TO_KVA(memory_start), memory_start,
            memory_size, L1_SIZE, ksegattr, PMAPBOOT_ENTER_NOOVERWRITE,
            bootpage_alloc, NULL);
+       aarch64_tlbi_all();
 
        /*
         * at this point, whole kernel image is mapped as "rwx".



Home | Main Index | Thread Index | Old Index