svn commit: r277089 - head/contrib/compiler-rt/lib/builtins

Dimitry Andric dim at FreeBSD.org
Mon Jan 12 21:28:11 UTC 2015


Author: dim
Date: Mon Jan 12 21:28:10 2015
New Revision: 277089
URL: https://svnweb.freebsd.org/changeset/base/277089

Log:
  Pull in r225610 from upstream compiler-rt trunk (by Roman Divacky):
  
    Add FreeBSD support for __clear_cache.

Modified:
  head/contrib/compiler-rt/lib/builtins/clear_cache.c

Modified: head/contrib/compiler-rt/lib/builtins/clear_cache.c
==============================================================================
--- head/contrib/compiler-rt/lib/builtins/clear_cache.c	Mon Jan 12 20:59:07 2015	(r277088)
+++ head/contrib/compiler-rt/lib/builtins/clear_cache.c	Mon Jan 12 21:28:10 2015	(r277089)
@@ -13,6 +13,11 @@
 #if __APPLE__
   #include <libkern/OSCacheControl.h>
 #endif
+#if defined(__FreeBSD__) && defined(__arm__)
+  #include <sys/types.h>
+  #include <machine/sysarch.h>
+#endif
+
 #if defined(__NetBSD__) && defined(__arm__)
   #include <machine/sysarch.h>
 #endif
@@ -39,7 +44,7 @@ void __clear_cache(void *start, void *en
  * so there is nothing to do
  */
 #elif defined(__arm__) && !defined(__APPLE__)
-    #if defined(__NetBSD__)
+    #if defined(__FreeBSD__) || defined(__NetBSD__)
         struct arm_sync_icache_args arg;
 
         arg.addr = (uintptr_t)start;


More information about the svn-src-all mailing list