diff options
author | mrg <mrg@pkgsrc.org> | 2020-10-17 07:22:15 +0000 |
---|---|---|
committer | mrg <mrg@pkgsrc.org> | 2020-10-17 07:22:15 +0000 |
commit | 80d8a84496f1c16468a2be49e966fbf6dc20c979 (patch) | |
tree | 21f7ae0601876ce919f6f17c737bb898539b0a53 /lang/nodejs/patches | |
parent | 34f0801ff70e7e60a960df7a6a15f13f12176ee3 (diff) | |
download | pkgsrc-80d8a84496f1c16468a2be49e966fbf6dc20c979.tar.gz |
make build on netbsd/arm.
Diffstat (limited to 'lang/nodejs/patches')
-rw-r--r-- | lang/nodejs/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lang/nodejs/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc b/lang/nodejs/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc new file mode 100644 index 00000000000..0a713f3cb1c --- /dev/null +++ b/lang/nodejs/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc @@ -0,0 +1,26 @@ +$NetBSD: patch-deps_v8_src_codegen_arm_cpu-arm.cc,v 1.1 2020/10/17 07:22:15 mrg Exp $ + +port to NetBSD/arm. + +--- deps/v8/src/codegen/arm/cpu-arm.cc.orig 2020-10-07 10:47:41.000000000 -0700 ++++ deps/v8/src/codegen/arm/cpu-arm.cc 2020-10-17 00:16:51.732785305 -0700 +@@ -19,6 +19,10 @@ + + #include "src/codegen/cpu-features.h" + ++#if V8_OS_NETBSD ++#include <machine/sysarch.h> ++#endif ++ + namespace v8 { + namespace internal { + +@@ -32,6 +36,8 @@ + struct arm_sync_icache_args args = { + .addr = reinterpret_cast<uintptr_t>(start), .len = size}; + sysarch(ARM_SYNC_ICACHE, reinterpret_cast<void*>(&args)); ++#elif V8_OS_NETBSD ++ arm_sync_icache(reinterpret_cast<uintptr_t>(start), size); + #else + register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start); + register uint32_t end asm("r1") = beg + size; |