diff options
author | Renato Golin <renato.golin@linaro.org> | 2015-03-02 21:02:43 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2015-03-02 21:02:43 +0000 |
commit | f775f0bf30d0cbbeddd71a5d2cbfcb3fe1db2d1e (patch) | |
tree | 7b7898619bbf2ea4391d09cab10d605ab49ecc56 /lib/builtins/clear_cache.c | |
parent | c02e737f541e67610e78aeae6838a3df0c74baa3 (diff) |
Allow compiler-rt build on Bitrig
This is the only patch Bitrig uses for compiler-rt. It adds support
for Bitrig/arm in the clear cache code.
Patch by Patrick Wildt.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/clear_cache.c')
-rw-r--r-- | lib/builtins/clear_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/builtins/clear_cache.c b/lib/builtins/clear_cache.c index 743a8c14b..80115531d 100644 --- a/lib/builtins/clear_cache.c +++ b/lib/builtins/clear_cache.c @@ -13,7 +13,7 @@ #if __APPLE__ #include <libkern/OSCacheControl.h> #endif -#if defined(__FreeBSD__) && defined(__arm__) +#if (defined(__FreeBSD__) || defined(__Bitrig__)) && defined(__arm__) #include <sys/types.h> #include <machine/sysarch.h> #endif @@ -90,7 +90,7 @@ void __clear_cache(void *start, void *end) { * so there is nothing to do */ #elif defined(__arm__) && !defined(__APPLE__) - #if defined(__FreeBSD__) || defined(__NetBSD__) + #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__Bitrig__) struct arm_sync_icache_args arg; arg.addr = (uintptr_t)start; |