[compiler-rt] r225610 - Add FreeBSD support for __clear_cache.
Roman Divacky
rdivacky at freebsd.org
Sun Jan 11 10:21:11 PST 2015
Author: rdivacky
Date: Sun Jan 11 12:21:11 2015
New Revision: 225610
URL: http://llvm.org/viewvc/llvm-project?rev=225610&view=rev
Log:
Add FreeBSD support for __clear_cache.
Modified:
compiler-rt/trunk/lib/builtins/clear_cache.c
Modified: compiler-rt/trunk/lib/builtins/clear_cache.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/clear_cache.c?rev=225610&r1=225609&r2=225610&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c (original)
+++ compiler-rt/trunk/lib/builtins/clear_cache.c Sun Jan 11 12:21:11 2015
@@ -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 llvm-commits
mailing list