svn commit: r306640 - head/sys/arm/arm

Andrew Turner andrew at FreeBSD.org
Mon Oct 3 14:26:56 UTC 2016


Author: andrew
Date: Mon Oct  3 14:26:55 2016
New Revision: 306640
URL: https://svnweb.freebsd.org/changeset/base/306640

Log:
  Only define the CF_* macros on ARMv4/v5. They are unused on armv6.
  
  Sponsored by:	ABT Systems Ltd

Modified:
  head/sys/arm/arm/genassym.c

Modified: head/sys/arm/arm/genassym.c
==============================================================================
--- head/sys/arm/arm/genassym.c	Mon Oct  3 14:18:13 2016	(r306639)
+++ head/sys/arm/arm/genassym.c	Mon Oct  3 14:26:55 2016	(r306640)
@@ -92,11 +92,13 @@ ASSYM(M_DATA, offsetof(struct mbuf, m_da
 ASSYM(M_NEXT, offsetof(struct mbuf, m_next));
 ASSYM(IP_SRC, offsetof(struct ip, ip_src));
 ASSYM(IP_DST, offsetof(struct ip, ip_dst));
+#if __ARM_ARCH < 6
 ASSYM(CF_CONTEXT_SWITCH, offsetof(struct cpu_functions, cf_context_switch));
 ASSYM(CF_DCACHE_WB_RANGE, offsetof(struct cpu_functions, cf_dcache_wb_range));
 ASSYM(CF_IDCACHE_WBINV_ALL, offsetof(struct cpu_functions, cf_idcache_wbinv_all));
 ASSYM(CF_L2CACHE_WBINV_ALL, offsetof(struct cpu_functions, cf_l2cache_wbinv_all));
 ASSYM(CF_TLB_FLUSHID_SE, offsetof(struct cpu_functions, cf_tlb_flushID_SE));
+#endif
 
 ASSYM(TD_PCB, offsetof(struct thread, td_pcb));
 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags));


More information about the svn-src-head mailing list