Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/include Switch to __builtin___clear_cache()...



details:   https://anonhg.NetBSD.org/src/rev/b0ed93a6093a
branches:  trunk
changeset: 837402:b0ed93a6093a
user:      alnsn <alnsn%NetBSD.org@localhost>
date:      Sun Dec 02 20:54:44 2018 +0000

description:
Switch to __builtin___clear_cache() in userspace.

aarch64_sync_icache() doesn't exist because there no libarm equivalent
on aarch64.

diffstat:

 sys/arch/aarch64/include/sljit_machdep.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ddd8ec5b2db0 -r b0ed93a6093a sys/arch/aarch64/include/sljit_machdep.h
--- a/sys/arch/aarch64/include/sljit_machdep.h  Sun Dec 02 18:12:29 2018 +0000
+++ b/sys/arch/aarch64/include/sljit_machdep.h  Sun Dec 02 20:54:44 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sljit_machdep.h,v 1.1 2018/08/26 21:06:46 rjs Exp $    */
+/*     $NetBSD: sljit_machdep.h,v 1.2 2018/12/02 20:54:44 alnsn Exp $  */
 
 /*-
  * Copyright (c) 2014 Alexander Nasonov.
@@ -47,7 +47,7 @@
        cpu_icache_sync_range((vaddr_t)(from), (vsize_t)((to) - (from)))
 #else
 #define SLJIT_CACHE_FLUSH(from, to) \
-       (void)aarch64_sync_icache((uintptr_t)(from), (size_t)((to) - (from)))
+       (void)__builtin___clear_cache((char *)(from), (char *)(to))
 #endif
 
 #endif



Home | Main Index | Thread Index | Old Index