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 Invalidate dcache before polling AP...
details: https://anonhg.NetBSD.org/src/rev/3d7e2086404f
branches: trunk
changeset: 464750:3d7e2086404f
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Oct 20 11:17:41 2019 +0000
description:
Invalidate dcache before polling AP hatched status
diffstat:
sys/arch/aarch64/aarch64/cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1992f2a0804b -r 3d7e2086404f sys/arch/aarch64/aarch64/cpu.c
--- a/sys/arch/aarch64/aarch64/cpu.c Sun Oct 20 09:41:53 2019 +0000
+++ b/sys/arch/aarch64/aarch64/cpu.c Sun Oct 20 11:17:41 2019 +0000
@@ -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 <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__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 @@
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 */
Home |
Main Index |
Thread Index |
Old Index