Commit ce461a9f authored by dbates@webkit.org's avatar dbates@webkit.org

Implement ExecutableAllocator::cacheFlush() for QNX

https://bugs.webkit.org/show_bug.cgi?id=66611

Reviewed by Antonio Gomes.

* jit/ExecutableAllocator.h:
(JSC::ExecutableAllocator::cacheFlush):


git-svn-id: svn://svn.chromium.org/blink/trunk@93462 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b8b14d32
2011-08-19 Daniel Bates <dbates@webkit.org>
Implement ExecutableAllocator::cacheFlush() for QNX
https://bugs.webkit.org/show_bug.cgi?id=66611
Reviewed by Antonio Gomes.
* jit/ExecutableAllocator.h:
(JSC::ExecutableAllocator::cacheFlush):
2011-08-19 Daniel Bates <dbates@webkit.org> 2011-08-19 Daniel Bates <dbates@webkit.org>
Implement WTF::atomic{Increment, Decrement}() for QNX Implement WTF::atomic{Increment, Decrement}() for QNX
......
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
#if OS(IOS) #if OS(IOS)
#include <libkern/OSCacheControl.h> #include <libkern/OSCacheControl.h>
#endif
#if OS(IOS) || OS(QNX)
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif
...@@ -325,6 +328,16 @@ public: ...@@ -325,6 +328,16 @@ public:
syscall(__NR_cacheflush, reinterpret_cast<unsigned>(code), size, CACHEFLUSH_D_WB | CACHEFLUSH_I); syscall(__NR_cacheflush, reinterpret_cast<unsigned>(code), size, CACHEFLUSH_D_WB | CACHEFLUSH_I);
#endif #endif
} }
#elif OS(QNX)
static void cacheFlush(void* code, size_t size)
{
#if !ENABLE(ASSEMBLER_WX_EXCLUSIVE)
msync(code, size, MS_INVALIDATE_ICACHE);
#else
UNUSED_PARAM(code);
UNUSED_PARAM(size);
#endif
}
#else #else
#error "The cacheFlush support is missing on this platform." #error "The cacheFlush support is missing on this platform."
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment