Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi/acpica Implement ACPI_FLUSH_CPU_CACHE on aarch64.



details:   https://anonhg.NetBSD.org/src/rev/d12fdf52b0a2
branches:  trunk
changeset: 836332:d12fdf52b0a2
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Oct 12 21:36:24 2018 +0000

description:
Implement ACPI_FLUSH_CPU_CACHE on aarch64.

diffstat:

 sys/dev/acpi/acpica/acpi_func.h |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 089a0c46273f -r d12fdf52b0a2 sys/dev/acpi/acpica/acpi_func.h
--- a/sys/dev/acpi/acpica/acpi_func.h   Fri Oct 12 21:35:54 2018 +0000
+++ b/sys/dev/acpi/acpica/acpi_func.h   Fri Oct 12 21:36:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_func.h,v 1.5 2018/04/19 21:50:08 christos Exp $   */
+/*     $NetBSD: acpi_func.h,v 1.6 2018/10/12 21:36:24 jmcneill Exp $   */
 
 /*-
  * Copyright (c) 2000 Michael Smith
@@ -83,10 +83,12 @@
 /*
  * XXX: Should be in a MD header.
  */
-#ifndef __ia64__
+#if defined(__ia64__)
+#define        ACPI_FLUSH_CPU_CACHE()  /* XXX: ia64_fc()? */
+#elif defined(__aarch64__)
+#define        ACPI_FLUSH_CPU_CACHE()  cpu_dcache_wbinv_all()
+#else
 #define        ACPI_FLUSH_CPU_CACHE()  wbinvd()
-#else
-#define ACPI_FLUSH_CPU_CACHE() /* XXX: ia64_fc()? */
 #endif
 
 #endif /* !_SYS_DEV_ACPI_ACPICA_ACPI_FUNC_H */



Home | Main Index | Thread Index | Old Index