forked from OSchip/llvm-project
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
This commit is contained in:
parent
d3b76a3b01
commit
26af9c9024
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue