diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2014-11-17 11:54:42 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2014-11-17 11:54:42 +0000 |
commit | 60feab89f73362883b9bc7b214c5d7329ae7f2ea (patch) | |
tree | 22aff65dd4605a92079abbaa53cd186f494d55f0 /x11 | |
parent | 322d9535fb5bbb00e5a06879fba285e909da5772 (diff) | |
download | pkgsrc-60feab89f73362883b9bc7b214c5d7329ae7f2ea.tar.gz |
implement cacheFlush for NetBSD/arm
Diffstat (limited to 'x11')
-rw-r--r-- | x11/qt4-libs/distinfo | 3 | ||||
-rw-r--r-- | x11/qt4-libs/patches/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/x11/qt4-libs/distinfo b/x11/qt4-libs/distinfo index be7d6e54a1d..2f90eab0dd9 100644 --- a/x11/qt4-libs/distinfo +++ b/x11/qt4-libs/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.92 2014/08/23 20:09:31 wiz Exp $ +$NetBSD: distinfo,v 1.93 2014/11/17 11:54:42 jmcneill Exp $ SHA1 (qt-everywhere-opensource-src-4.8.6.tar.gz) = ddf9c20ca8309a116e0466c42984238009525da6 RMD160 (qt-everywhere-opensource-src-4.8.6.tar.gz) = 0220d4e76ac761c9ecfb8ddab6f2c1dc6ad70c33 @@ -49,6 +49,7 @@ SHA1 (patch-src_3rdparty_javascriptcore_JavaScriptCore_wtf_TypeTraits.h) = f2343 SHA1 (patch-src_3rdparty_webkit_Source_JavaScriptCore_heap_MachineStackMarker.cpp) = cbce2e10307d26163a76266c0ceee315a609d63d SHA1 (patch-src_3rdparty_webkit_Source_JavaScriptCore_heap_MarkedSpace.cpp) = c7c9c39b11007e7ec3884874a38d000e3238bf64 SHA1 (patch-src_3rdparty_webkit_Source_JavaScriptCore_heap_MarkedSpace.h) = bf748efe8d150fe636cbc5b20dcd9a7d4945c8c9 +SHA1 (patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h) = 67fd733023de92878ed067df0258c3e0c5ccfa5d SHA1 (patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_JITStubs.cpp) = bfe38ea1e26fef02dd78e40c95c000cb0cc32a04 SHA1 (patch-src_3rdparty_webkit_Source_JavaScriptCore_parser_JSParser.cpp) = 95eb0e9aa01aedf148bd0ad53a59a1418081e623 SHA1 (patch-src_3rdparty_webkit_Source_JavaScriptCore_wtf_Atomics.h) = c79d9ed7f60a63090aadabbe2fa399a911449cd8 diff --git a/x11/qt4-libs/patches/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h b/x11/qt4-libs/patches/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h new file mode 100644 index 00000000000..d7d5265651d --- /dev/null +++ b/x11/qt4-libs/patches/patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h @@ -0,0 +1,30 @@ +$NetBSD: patch-src_3rdparty_webkit_Source_JavaScriptCore_jit_ExecutableAllocator.h,v 1.1 2014/11/17 11:54:42 jmcneill Exp $ + +--- src/3rdparty/webkit/Source/JavaScriptCore/jit/ExecutableAllocator.h.orig 2014-04-10 18:37:11.000000000 +0000 ++++ src/3rdparty/webkit/Source/JavaScriptCore/jit/ExecutableAllocator.h +@@ -66,6 +66,10 @@ extern "C" __declspec(dllimport) void Ca + #include <wtf/brew/RefPtrBrew.h> + #endif + ++#if CPU(ARM) && OS(NETBSD) ++#include <machine/sysarch.h> ++#endif ++ + #define JIT_ALLOCATOR_PAGE_SIZE (ExecutableAllocator::pageSize) + #define JIT_ALLOCATOR_LARGE_ALLOC_SIZE (ExecutableAllocator::pageSize * 4) + +@@ -326,6 +330,14 @@ public: + syscall(__NR_cacheflush, reinterpret_cast<unsigned>(code), size, CACHEFLUSH_D_WB | CACHEFLUSH_I); + #endif + } ++#elif CPU(ARM) && OS(NETBSD) ++ static void cacheFlush(void *code, size_t size) ++ { ++ struct arm_sync_icache_args args; ++ args.addr = reinterpret_cast<uintptr_t>(code); ++ args.len = size; ++ sysarch(ARM_SYNC_ICACHE, &args); ++ } + #else + #error "The cacheFlush support is missing on this platform." + #endif |