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 | 26af9c9024fffa104fd627462a76c484f7adfb3d (patch) | |
| tree | e807ec327943f7d9916705a1e09b7510dbe1c791 /compiler-rt | |
| parent | d3b76a3b019d4a006350a6cb979b426703abe764 (diff) | |
| download | bcm5719-llvm-26af9c9024fffa104fd627462a76c484f7adfb3d.tar.gz bcm5719-llvm-26af9c9024fffa104fd627462a76c484f7adfb3d.zip | |
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.
llvm-svn: 231012
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/builtins/clear_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/builtins/clear_cache.c b/compiler-rt/lib/builtins/clear_cache.c index 743a8c14b01..80115531d82 100644 --- a/compiler-rt/lib/builtins/clear_cache.c +++ b/compiler-rt/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; |

