From d123fff0f13bb0e60f04ed7d0cf404fece28666f Mon Sep 17 00:00:00 2001 From: jmcneill Date: Sun, 20 Oct 2019 11:17:41 +0000 Subject: [PATCH] Invalidate dcache before polling AP hatched status --- sys/arch/aarch64/aarch64/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/aarch64/aarch64/cpu.c b/sys/arch/aarch64/aarch64/cpu.c index 32e63ebb1dc2..0ae280407d00 100644 --- a/sys/arch/aarch64/aarch64/cpu.c +++ b/sys/arch/aarch64/aarch64/cpu.c @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.23 2019/10/19 18:04:26 jmcneill Exp $ */ +/* $NetBSD: cpu.c,v 1.24 2019/10/20 11:17:41 jmcneill Exp $ */ /* * Copyright (c) 2017 Ryo Shimizu @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.23 2019/10/19 18:04:26 jmcneill Exp $"); +__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.24 2019/10/20 11:17:41 jmcneill Exp $"); #include "locators.h" #include "opt_arm_debug.h" @@ -571,7 +571,7 @@ cpu_hatch(struct cpu_info *ci) bool cpu_hatched_p(u_int cpuindex) { - membar_consumer(); + aarch64_dcache_inv_range((vaddr_t)&aarch64_cpu_mbox[cpuindex], 4); return (aarch64_cpu_mbox[cpuindex] & CPU_MBOX_HATCHED) != 0; } #endif /* MULTIPROCESSOR */