forked from OSchip/llvm-project
[compiler-rt] Implement __clear_cache() on OpenBSD/arm
This commit is contained in:
parent
16bb71fd4f
commit
8542dab909
|
@ -33,7 +33,7 @@ uintptr_t GetCurrentProcess(void);
|
|||
#include <machine/sysarch.h>
|
||||
#endif
|
||||
|
||||
#if defined(__OpenBSD__) && defined(__mips__)
|
||||
#if defined(__OpenBSD__) && (defined(__arm__) || defined(__mips__))
|
||||
// clang-format off
|
||||
#include <sys/types.h>
|
||||
#include <machine/sysarch.h>
|
||||
|
@ -58,7 +58,7 @@ void __clear_cache(void *start, void *end) {
|
|||
#elif defined(_WIN32) && (defined(__arm__) || defined(__aarch64__))
|
||||
FlushInstructionCache(GetCurrentProcess(), start, end - start);
|
||||
#elif defined(__arm__) && !defined(__APPLE__)
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
struct arm_sync_icache_args arg;
|
||||
|
||||
arg.addr = (uintptr_t)start;
|
||||
|
|
Loading…
Reference in New Issue