Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Declare armv7 routines if CPU_ARMV7 is ...
details: https://anonhg.NetBSD.org/src/rev/e49bb1e413d1
branches: trunk
changeset: 328568:e49bb1e413d1
user: matt <matt%NetBSD.org@localhost>
date: Mon Apr 07 20:38:52 2014 +0000
description:
Declare armv7 routines if CPU_ARMV7 is defined.
Rearrange in less random manner.
diffstat:
sys/arch/arm/include/cpufunc.h | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diffs (45 lines):
diff -r 38a485502bef -r e49bb1e413d1 sys/arch/arm/include/cpufunc.h
--- a/sys/arch/arm/include/cpufunc.h Mon Apr 07 17:40:49 2014 +0000
+++ b/sys/arch/arm/include/cpufunc.h Mon Apr 07 20:38:52 2014 +0000
@@ -470,7 +470,7 @@
void armv6_idcache_wbinv_range (vaddr_t, vsize_t);
#endif
-#if defined(CPU_CORTEX)
+#if defined(CPU_ARMV7)
#if defined(ARM_MMU_EXTENDED)
void armv7_setttb(u_int, tlb_asid_t);
void armv7_context_switch(u_int, tlb_asid_t);
@@ -480,12 +480,15 @@
#endif
void armv7_icache_sync_range(vaddr_t, vsize_t);
+void armv7_icache_sync_all(void);
+
+void armv7_dcache_inv_range(vaddr_t, vsize_t);
void armv7_dcache_wb_range(vaddr_t, vsize_t);
void armv7_dcache_wbinv_range(vaddr_t, vsize_t);
-void armv7_dcache_inv_range(vaddr_t, vsize_t);
+void armv7_dcache_wbinv_all(void);
+
void armv7_idcache_wbinv_range(vaddr_t, vsize_t);
-
-void armv7_icache_sync_all(void);
+void armv7_idcache_wbinv_all(void);
void armv7_tlb_flushID(void);
void armv7_tlb_flushI(void);
@@ -498,12 +501,7 @@
void armv7_cpu_sleep(int);
void armv7_drain_writebuf(void);
void armv7_setup(char *string);
-#endif
-
-#if defined(CPU_CORTEX) || defined(CPU_PJ4B)
-void armv7_dcache_wbinv_all(void);
-void armv7_idcache_wbinv_all(void);
-#endif
+#endif /* CPU_ARMV7 */
#if defined(CPU_PJ4B)
#if defined(ARM_MMU_EXTENDED)
Home |
Main Index |
Thread Index |
Old Index