Remove unnecessary aarch64_dcache_wbinv_all now that pmapboot_enter does

dsb(ish)
This commit is contained in:
skrll 2020-12-09 08:51:05 +00:00
parent a37bf773f6
commit 20a68a6fd8
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: aarch64_machdep.c,v 1.54 2020/11/10 07:51:19 skrll Exp $ */
/* $NetBSD: aarch64_machdep.c,v 1.55 2020/12/09 08:51:05 skrll 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.54 2020/11/10 07:51:19 skrll Exp $");
__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.55 2020/12/09 08:51:05 skrll Exp $");
#include "opt_arm_debug.h"
#include "opt_cpuoptions.h"
@ -166,7 +166,6 @@ cpu_kernel_vm_init(uint64_t memory_start __unused, uint64_t memory_size __unused
pmapboot_enter_range(AARCH64_PA_TO_KVA(start), start,
end - start, dmattr, printf);
}
aarch64_dcache_wbinv_all();
/* Disable translation table walks using TTBR0 */
uint64_t tcr = reg_tcr_el1_read();