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 Remove the unnecessary invalidation...



details:   https://anonhg.NetBSD.org/src/rev/681f2dde6e18
branches:  trunk
changeset: 1019810:681f2dde6e18
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Mar 21 07:09:54 2021 +0000

description:
Remove the unnecessary invalidation code in arm_efirt_md_map_range.

pmapboot_enter will panic if any overlapping mappings existed before and
a full TLB invalidate was done as part of turning the MMU on in locore.

diffstat:

 sys/arch/aarch64/aarch64/efi_machdep.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 32112b03f573 -r 681f2dde6e18 sys/arch/aarch64/aarch64/efi_machdep.c
--- a/sys/arch/aarch64/aarch64/efi_machdep.c    Sat Mar 20 22:10:17 2021 +0000
+++ b/sys/arch/aarch64/aarch64/efi_machdep.c    Sun Mar 21 07:09:54 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efi_machdep.c,v 1.9 2021/03/20 06:48:23 skrll Exp $ */
+/* $NetBSD: efi_machdep.c,v 1.10 2021/03/21 07:09:54 skrll Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efi_machdep.c,v 1.9 2021/03/20 06:48:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efi_machdep.c,v 1.10 2021/03/21 07:09:54 skrll Exp $");
 
 #include <sys/param.h>
 #include <uvm/uvm_extern.h>
@@ -69,11 +69,6 @@
        }
 
        pmapboot_enter(va, pa, sz, L3_SIZE, attr, NULL);
-       while (sz >= PAGE_SIZE) {
-               aarch64_tlbi_by_va(va);
-               va += PAGE_SIZE;
-               sz -= PAGE_SIZE;
-       }
 }
 
 int



Home | Main Index | Thread Index | Old Index