From 0c9c0c5a6df76a01acfeb129e1b3f299d8a61634 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Sun, 11 Jan 2015 18:21:11 +0000 Subject: [PATCH] Add FreeBSD support for __clear_cache. llvm-svn: 225610 --- compiler-rt/lib/builtins/clear_cache.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler-rt/lib/builtins/clear_cache.c b/compiler-rt/lib/builtins/clear_cache.c index 86e68af..4b46e8b 100644 --- a/compiler-rt/lib/builtins/clear_cache.c +++ b/compiler-rt/lib/builtins/clear_cache.c @@ -13,6 +13,11 @@ #if __APPLE__ #include #endif +#if defined(__FreeBSD__) && defined(__arm__) + #include + #include +#endif + #if defined(__NetBSD__) && defined(__arm__) #include #endif @@ -39,7 +44,7 @@ void __clear_cache(void *start, void *end) { * 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; -- 2.7.4