Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/node/Makefile,v
retrieving revision 1.105
diff -u -p -r1.105 Makefile
--- Makefile 22 Jul 2022 17:46:49 -0000 1.105
+++ Makefile 1 Sep 2022 18:54:19 -0000
@@ -1,11 +1,11 @@
-ONLY_FOR_ARCHS = amd64 aarch64 i386 powerpc64
+ONLY_FOR_ARCHS = amd64 aarch64 i386 powerpc64 riscv64
DPB_PROPERTIES = parallel
USE_WXNEEDED = Yes
COMMENT = JavaScript runtime built on Chrome's V8 JavaScript engine
-NODE_VERSION = v16.16.0
+NODE_VERSION = v16.17.0
PLEDGE_VER = 1.1.2
DISTFILES = node-pledge-{}${PLEDGE_VER}.tar.gz:0 \
${DISTNAME}-headers.tar.xz \
Index: distinfo
===================================================================
RCS file: /cvs/ports/lang/node/distinfo,v
retrieving revision 1.62
diff -u -p -r1.62 distinfo
--- distinfo 22 Jul 2022 17:46:49 -0000 1.62
+++ distinfo 1 Sep 2022 18:54:19 -0000
@@ -1,6 +1,6 @@
SHA256 (node-pledge-1.1.2.tar.gz) = zY/JcbZ32mmtqWXXNn3/9aTh7Y3F6fAAaADDA8SYwEk=
-SHA256 (node-v16.16.0-headers.tar.xz) = 1GO652HX/ed2Vk0lASGQ3x4rheK5NIDq9BMSYzGXP7w=
-SHA256 (node-v16.16.0.tar.xz) = FFFR7/Oyql6+czhACcUicag3QK5oepPJjGKM19UnNus=
+SHA256 (node-v16.17.0-headers.tar.xz) = 0xXvroZshZyLkmnoSb/zGRQkf/8Bp4KFAwNpsM+M6RA=
+SHA256 (node-v16.17.0.tar.xz) = HSjChWheRGmFkhvJY1ZcqcDF9P2pdV5InAaAjql5VkU=
SIZE (node-pledge-1.1.2.tar.gz) = 3155
-SIZE (node-v16.16.0-headers.tar.xz) = 385396
-SIZE (node-v16.16.0.tar.xz) = 35039712
+SIZE (node-v16.17.0-headers.tar.xz) = 385884
+SIZE (node-v16.17.0.tar.xz) = 35664964
Index: patches/patch-common_gypi
===================================================================
RCS file: /cvs/ports/lang/node/patches/patch-common_gypi,v
retrieving revision 1.22
diff -u -p -r1.22 patch-common_gypi
--- patches/patch-common_gypi 8 Jun 2022 21:14:29 -0000 1.22
+++ patches/patch-common_gypi 1 Sep 2022 18:54:19 -0000
@@ -1,7 +1,7 @@
Index: common.gypi
--- common.gypi.orig
+++ common.gypi
-@@ -412,7 +412,9 @@
+@@ -416,7 +416,9 @@
}],
['OS=="openbsd"', {
'cflags': [ '-I/usr/local/include' ],
Index: patches/patch-deps_v8_src_codegen_riscv64_assembler-riscv64_cc
===================================================================
RCS file: patches/patch-deps_v8_src_codegen_riscv64_assembler-riscv64_cc
diff -N patches/patch-deps_v8_src_codegen_riscv64_assembler-riscv64_cc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-deps_v8_src_codegen_riscv64_assembler-riscv64_cc 1 Sep 2022 18:54:19 -0000
@@ -0,0 +1,18 @@
+Use static_cast instead of a potentially dangerous reinterpret_cast.
+Doesn't matter since this file only supports riscv64 where unsigned long and
+unsigned long long are actually the same size.
+../deps/v8/src/codegen/riscv64/assembler-riscv64.cc:403:22: error: reinterpret_cast \
+rom 'v8::internal::Address' (aka 'unsigned long') to 'uint64_t' (aka 'unsigned long \
+ong') is not allowed +
+Index: deps/v8/src/codegen/riscv64/assembler-riscv64.cc
+--- deps/v8/src/codegen/riscv64/assembler-riscv64.cc.orig
++++ deps/v8/src/codegen/riscv64/assembler-riscv64.cc
+@@ -400,7 +400,7 @@ int Assembler::target_at(int pos, bool is_internal) {
+ Address pc = reinterpret_cast<Address>(buffer_start_ + pos);
+ pc = target_address_at(pc);
+ uint64_t instr_address = reinterpret_cast<uint64_t>(buffer_start_ + pos);
+- uint64_t imm = reinterpret_cast<uint64_t>(pc);
++ uint64_t imm = static_cast<uint64_t>(pc);
+ if (imm == kEndOfJumpChain) {
+ return kEndOfChain;
+ } else {
Index: patches/patch-deps_v8_src_codegen_riscv64_cpu-riscv64_cc
===================================================================
RCS file: patches/patch-deps_v8_src_codegen_riscv64_cpu-riscv64_cc
diff -N patches/patch-deps_v8_src_codegen_riscv64_cpu-riscv64_cc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-deps_v8_src_codegen_riscv64_cpu-riscv64_cc 1 Sep 2022 18:54:19 -0000
@@ -0,0 +1,39 @@
+Implement instruction cache flush using sysarch(RISCV_SYNC_ICACHE).
+
+Index: deps/v8/src/codegen/riscv64/cpu-riscv64.cc
+--- deps/v8/src/codegen/riscv64/cpu-riscv64.cc.orig
++++ deps/v8/src/codegen/riscv64/cpu-riscv64.cc
+@@ -4,7 +4,13 @@
+
+ // CPU specific code for arm independent of OS goes here.
+
+-#include <sys/syscall.h>
++#ifdef __OpenBSD__
++# include <sys/types.h>
++# include <machine/sysarch.h>
++#else
++# include <sys/syscall.h>
++#endif
++
+ #include <unistd.h>
+
+ #if V8_TARGET_ARCH_RISCV64
+@@ -16,6 +22,10 @@ namespace internal {
+
+ void CpuFeatures::FlushICache(void* start, size_t size) {
+ #if !defined(USE_SIMULATOR)
++# ifdef __OpenBSD__
++ struct riscv_sync_icache_args args = { (u_int64_t)(uintptr_t)start, size };
++ sysarch(RISCV_SYNC_ICACHE, &args);
++# else
+ char* end = reinterpret_cast<char*>(start) + size;
+ // The definition of this syscall is
+ // SYSCALL_DEFINE3(riscv_flush_icache, uintptr_t, start,
+@@ -23,6 +33,7 @@ void CpuFeatures::FlushICache(void* start, size_t size
+ // The flag here is set to be SYS_RISCV_FLUSH_ICACHE_LOCAL, which is
+ // defined as 1 in the Linux kernel.
+ syscall(SYS_riscv_flush_icache, start, end, 1);
++# endif // !__OpenBSD__
+ #endif // !USE_SIMULATOR.
+ }
+
Index: patches/patch-deps_v8_src_codegen_riscv64_macro-assembler-riscv64_cc
===================================================================
RCS file: patches/patch-deps_v8_src_codegen_riscv64_macro-assembler-riscv64_cc
diff -N patches/patch-deps_v8_src_codegen_riscv64_macro-assembler-riscv64_cc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-deps_v8_src_codegen_riscv64_macro-assembler-riscv64_cc 1 Sep 2022 18:54:19 -0000
@@ -0,0 +1,14 @@
+Force picking up the correct RecordEntry function.
+
+Index: deps/v8/src/codegen/riscv64/macro-assembler-riscv64.cc
+--- deps/v8/src/codegen/riscv64/macro-assembler-riscv64.cc.orig
++++ deps/v8/src/codegen/riscv64/macro-assembler-riscv64.cc
+@@ -3996,7 +3996,7 @@ void MacroAssembler::JumpToInstructionStream(Address e
+ if (!FLAG_riscv_constant_pool) {
+ li(kOffHeapTrampolineRegister, Operand(entry, RelocInfo::OFF_HEAP_TARGET));
+ } else {
+- RecordEntry(entry, RelocInfo::OFF_HEAP_TARGET);
++ RecordEntry(static_cast<uint64_t>(entry), RelocInfo::OFF_HEAP_TARGET);
+ RecordRelocInfo(RelocInfo::OFF_HEAP_TARGET, entry);
+ auipc(kOffHeapTrampolineRegister, 0);
+ ld(kOffHeapTrampolineRegister, kOffHeapTrampolineRegister, 0);
Index: patches/patch-lib_internal_modules_cjs_loader_js
===================================================================
RCS file: /cvs/ports/lang/node/patches/patch-lib_internal_modules_cjs_loader_js,v
retrieving revision 1.7
diff -u -p -r1.7 patch-lib_internal_modules_cjs_loader_js
--- patches/patch-lib_internal_modules_cjs_loader_js 8 Jun 2022 21:14:29 -0000 1.7
+++ patches/patch-lib_internal_modules_cjs_loader_js 1 Sep 2022 18:54:19 -0000
@@ -1,7 +1,7 @@
Index: lib/internal/modules/cjs/loader.js
--- lib/internal/modules/cjs/loader.js.orig
+++ lib/internal/modules/cjs/loader.js
-@@ -1240,7 +1240,10 @@ Module._initPaths = function() {
+@@ -1261,7 +1261,10 @@ Module._initPaths = function() {
path.resolve(process.execPath, '..') :
path.resolve(process.execPath, '..', '..');
Index: patches/patch-lib_net_js
===================================================================
RCS file: /cvs/ports/lang/node/patches/patch-lib_net_js,v
retrieving revision 1.4
diff -u -p -r1.4 patch-lib_net_js
--- patches/patch-lib_net_js 8 Jun 2022 21:14:29 -0000 1.4
+++ patches/patch-lib_net_js 1 Sep 2022 18:54:19 -0000
@@ -13,7 +13,7 @@ for "any address" but that's not really
Index: lib/net.js
--- lib/net.js.orig
+++ lib/net.js
-@@ -1334,22 +1334,12 @@ function setupListenHandle(address, port, addressType,
+@@ -1394,22 +1394,12 @@ function setupListenHandle(address, port, addressType,
let rval = null;
Index: patches/patch-node_gyp
===================================================================
RCS file: /cvs/ports/lang/node/patches/patch-node_gyp,v
retrieving revision 1.13
diff -u -p -r1.13 patch-node_gyp
--- patches/patch-node_gyp 8 Jun 2022 21:14:29 -0000 1.13
+++ patches/patch-node_gyp 1 Sep 2022 18:54:19 -0000
@@ -1,7 +1,7 @@
Index: node.gyp
--- node.gyp.orig
+++ node.gyp
-@@ -357,7 +357,7 @@
+@@ -405,7 +405,7 @@
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
],
'dependencies': [
@@ -10,7 +10,7 @@ Index: node.gyp
'deps/histogram/histogram.gyp:histogram',
'deps/uvwasi/uvwasi.gyp:uvwasi',
],
-@@ -1082,8 +1082,8 @@
+@@ -1130,8 +1130,8 @@
'dependencies': [
'<(node_lib_target_name)',
@@ -21,7 +21,7 @@ Index: node.gyp
'deps/histogram/histogram.gyp:histogram',
'deps/uvwasi/uvwasi.gyp:uvwasi',
'node_dtrace_header',
-@@ -1157,6 +1157,10 @@
+@@ -1205,6 +1205,10 @@
}],
['OS=="solaris"', {
'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
Index: patches/patch-src_env_cc
===================================================================
RCS file: /cvs/ports/lang/node/patches/patch-src_env_cc,v
retrieving revision 1.2
diff -u -p -r1.2 patch-src_env_cc
--- patches/patch-src_env_cc 11 Mar 2022 19:29:08 -0000 1.2
+++ patches/patch-src_env_cc 1 Sep 2022 18:54:19 -0000
@@ -1,7 +1,7 @@
Index: src/env.cc
--- src/env.cc.orig
+++ src/env.cc
-@@ -304,29 +304,7 @@ void Environment::CreateProperties() {
+@@ -695,29 +695,7 @@ void Environment::CreateProperties() {
}
std::string GetExecPath(const std::vector<std::string>& argv) {
Index: patches/patch-tools_test_py
===================================================================
RCS file: /cvs/ports/lang/node/patches/patch-tools_test_py,v
retrieving revision 1.10
diff -u -p -r1.10 patch-tools_test_py
--- patches/patch-tools_test_py 11 Mar 2022 19:29:08 -0000 1.10
+++ patches/patch-tools_test_py 1 Sep 2022 18:54:19 -0000
@@ -1,6 +1,7 @@
---- tools/test.py.orig Sat Jan 8 14:31:29 2022
-+++ tools/test.py Sat Jan 8 14:32:47 2022
-@@ -925,9 +925,9 @@ class Context(object):
+Index: tools/test.py
+--- tools/test.py.orig
++++ tools/test.py
+@@ -938,9 +938,9 @@ class Context(object):
if self.vm is not None:
return self.vm
if arch == 'none':
Index: patches/patch-tools_v8_gypfiles_v8_gyp
===================================================================
RCS file: /cvs/ports/lang/node/patches/patch-tools_v8_gypfiles_v8_gyp,v
retrieving revision 1.5
diff -u -p -r1.5 patch-tools_v8_gypfiles_v8_gyp
--- patches/patch-tools_v8_gypfiles_v8_gyp 8 Jun 2022 21:14:29 -0000 1.5
+++ patches/patch-tools_v8_gypfiles_v8_gyp 1 Sep 2022 18:54:19 -0000
@@ -1,3 +1,9 @@
+Hunk 1: enable webassembly on OpenBSD
+
+Hunk 2: don't link against libatomic with clang, which uses libcompiler-rt
+at least on OpenBSD. The heuristic used is that llvm_version will be different
+from "0.0" if llvm (clang) is detected.
+
Index: tools/v8_gypfiles/v8.gyp
--- tools/v8_gypfiles/v8.gyp.orig
+++ tools/v8_gypfiles/v8.gyp
@@ -10,3 +16,12 @@ Index: tools/v8_gypfiles/v8.gyp
'sources': [
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_current_cpu == \\"x64\\".*?v8_enable_webassembly.*?is_linux.*?sources \\+= ")',
],
+@@ -947,7 +947,7 @@
+ }],
+ # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
+ # to implement atomic memory access
+- ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm", "riscv64"]', {
++ ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm", "riscv64"] and llvm_version == "0.0"', {
+ 'link_settings': {
+ 'libraries': ['-latomic', ],
+ },
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/lang/node/pkg/PLIST,v
retrieving revision 1.50
diff -u -p -r1.50 PLIST
--- pkg/PLIST 8 Jun 2022 21:14:29 -0000 1.50
+++ pkg/PLIST 1 Sep 2022 18:54:19 -0000
@@ -252,6 +252,7 @@ lib/node_modules/@npmcli/promise-spawn/p
lib/node_modules/@npmcli/run-script/
lib/node_modules/@npmcli/run-script/LICENSE
lib/node_modules/@npmcli/run-script/lib/
+lib/node_modules/@npmcli/run-script/lib/escape.js
lib/node_modules/@npmcli/run-script/lib/is-server-package.js
lib/node_modules/@npmcli/run-script/lib/is-windows.js
lib/node_modules/@npmcli/run-script/lib/make-spawn-args.js
@@ -507,6 +508,7 @@ lib/node_modules/console-control-strings
lib/node_modules/console-control-strings/index.js
lib/node_modules/console-control-strings/package.json
lib/node_modules/corepack/
+lib/node_modules/corepack/CHANGELOG.md
lib/node_modules/corepack/LICENSE.md
lib/node_modules/corepack/README.md
lib/node_modules/corepack/dist/
@@ -516,6 +518,7 @@ lib/node_modules/corepack/dist/npx.js
lib/node_modules/corepack/dist/pnpm.js
lib/node_modules/corepack/dist/pnpx.js
lib/node_modules/corepack/dist/vcc.js
+lib/node_modules/corepack/dist/vendors-_yarn_berry_cache_proxy-agent-npm-5_0_0-41772f4b01-9_zip_node_modules_proxy-agent_index_js.js
lib/node_modules/corepack/dist/yarn.js
lib/node_modules/corepack/dist/yarnpkg.js
lib/node_modules/corepack/package.json
@@ -539,9 +542,6 @@ lib/node_modules/corepack/shims/nodewin/
lib/node_modules/corepack/shims/nodewin/pnpx
lib/node_modules/corepack/shims/nodewin/pnpx.cmd
lib/node_modules/corepack/shims/nodewin/pnpx.ps1
-lib/node_modules/corepack/shims/nodewin/vcc
-lib/node_modules/corepack/shims/nodewin/vcc.cmd
-lib/node_modules/corepack/shims/nodewin/vcc.ps1
lib/node_modules/corepack/shims/nodewin/yarn
lib/node_modules/corepack/shims/nodewin/yarn.cmd
lib/node_modules/corepack/shims/nodewin/yarn.ps1
@@ -1001,6 +1001,7 @@ lib/node_modules/libnpmversion/lib/write
lib/node_modules/libnpmversion/package.json
lib/node_modules/lru-cache/
lib/node_modules/lru-cache/LICENSE
+lib/node_modules/lru-cache/index.d.ts
lib/node_modules/lru-cache/index.js
lib/node_modules/lru-cache/package.json
lib/node_modules/make-fetch-happen/
@@ -1061,6 +1062,7 @@ lib/node_modules/minipass-sized/index.js
lib/node_modules/minipass-sized/package-lock.json
lib/node_modules/minipass-sized/package.json
lib/node_modules/minipass/LICENSE
+lib/node_modules/minipass/index.d.ts
lib/node_modules/minipass/index.js
lib/node_modules/minipass/package.json
lib/node_modules/minizlib/
@@ -1504,6 +1506,7 @@ lib/node_modules/npm/docs/content/using-
lib/node_modules/npm/docs/content/using-npm/developers.md
lib/node_modules/npm/docs/content/using-npm/logging.md
lib/node_modules/npm/docs/content/using-npm/orgs.md
+lib/node_modules/npm/docs/content/using-npm/package-spec.md
lib/node_modules/npm/docs/content/using-npm/registry.md
lib/node_modules/npm/docs/content/using-npm/removal.md
lib/node_modules/npm/docs/content/using-npm/scope.md
@@ -1588,6 +1591,7 @@ lib/node_modules/npm/docs/output/using-n
lib/node_modules/npm/docs/output/using-npm/developers.html
lib/node_modules/npm/docs/output/using-npm/logging.html
lib/node_modules/npm/docs/output/using-npm/orgs.html
+lib/node_modules/npm/docs/output/using-npm/package-spec.html
lib/node_modules/npm/docs/output/using-npm/registry.html
lib/node_modules/npm/docs/output/using-npm/removal.html
lib/node_modules/npm/docs/output/using-npm/scope.html
@@ -1703,6 +1707,7 @@ lib/node_modules/npm/lib/utils/is-window
lib/node_modules/npm/lib/utils/log-file.js
lib/node_modules/npm/lib/utils/log-shim.js
lib/node_modules/npm/lib/utils/npm-usage.js
+lib/node_modules/npm/lib/utils/open-url-prompt.js
lib/node_modules/npm/lib/utils/open-url.js
lib/node_modules/npm/lib/utils/otplease.js
lib/node_modules/npm/lib/utils/ping.js
@@ -1716,8 +1721,10 @@ lib/node_modules/npm/lib/utils/tar.js
lib/node_modules/npm/lib/utils/timers.js
lib/node_modules/npm/lib/utils/update-notifier.js
lib/node_modules/npm/lib/utils/validate-lockfile.js
+lib/node_modules/npm/lib/utils/web-auth.js
lib/node_modules/npm/lib/workspaces/
lib/node_modules/npm/lib/workspaces/get-workspaces.js
+lib/node_modules/npm/lib/workspaces/update-workspaces.js
@mandir lib/node_modules/npm/man/
lib/node_modules/npm/man/man1/
@man lib/node_modules/npm/man/man1/npm-access.1
@@ -1797,6 +1804,7 @@ lib/node_modules/npm/man/man7/
@man lib/node_modules/npm/man/man7/developers.7
@man lib/node_modules/npm/man/man7/logging.7
@man lib/node_modules/npm/man/man7/orgs.7
+@man lib/node_modules/npm/man/man7/package-spec.7
@man lib/node_modules/npm/man/man7/registry.7
@man lib/node_modules/npm/man/man7/removal.7
@man lib/node_modules/npm/man/man7/scope.7
Can't test on riscv64 nor OK anything, but it applys cleanly to my node
16.17.0 patch that's still waiting for a go ... **hint**
Combined diff attached if you'd have a look ;-)
On 9/1/22 02:50, Jeremie Courreges-Anglas wrote:
>
> Hopefully the comments in the patches explain what is going on. No
> REVISION bump since all the patched are riscv64-specific or (AFAIK)
> not affecting any arch where node currently builds
> (patches/patch-tools_v8_gypfiles_v8_gyp). But I can add a REVISION bump
> if it feels more comfortable.
>
> With this I can attempt building firefox (build ongoing) or chromium.
>
> ok?
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/lang/node/Makefile,v
> retrieving revision 1.105
> diff -u -p -r1.105 Makefile
> --- Makefile 22 Jul 2022 17:46:49 -0000 1.105
> +++ Makefile 30 Aug 2022 15:44:48 -0000
> @@ -1,4 +1,4 @@
> -ONLY_FOR_ARCHS = amd64 aarch64 i386 powerpc64
> +ONLY_FOR_ARCHS = amd64 aarch64 i386 powerpc64 riscv64
> DPB_PROPERTIES = parallel
>
> USE_WXNEEDED = Yes
> Index: patches/patch-deps_v8_src_codegen_riscv64_assembler-riscv64_cc
> ===================================================================
> RCS file: patches/patch-deps_v8_src_codegen_riscv64_assembler-riscv64_cc
> diff -N patches/patch-deps_v8_src_codegen_riscv64_assembler-riscv64_cc
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-deps_v8_src_codegen_riscv64_assembler-riscv64_cc 31 Aug 2022 09:04:56 -0000
> @@ -0,0 +1,17 @@
> +Use static_cast instead of a potentially dangerous reinterpret_cast.
> +Doesn't matter since this file only supports riscv64 where unsigned long and
> +unsigned long long are actually the same size.
> +../deps/v8/src/codegen/riscv64/assembler-riscv64.cc:403:22: error: reinterpret_cast from 'v8::internal::Address' (aka 'unsigned long') to 'uint64_t' (aka 'unsigned long long') is not allowed
> +
> +Index: deps/v8/src/codegen/riscv64/assembler-riscv64.cc
> +--- deps/v8/src/codegen/riscv64/assembler-riscv64.cc.orig
> ++++ deps/v8/src/codegen/riscv64/assembler-riscv64.cc
> +@@ -400,7 +400,7 @@ int Assembler::target_at(int pos, bool is_internal) {
> + Address pc = reinterpret_cast<Address>(buffer_start_ + pos);
> + pc = target_address_at(pc);
> + uint64_t instr_address = reinterpret_cast<uint64_t>(buffer_start_ + pos);
> +- uint64_t imm = reinterpret_cast<uint64_t>(pc);
> ++ uint64_t imm = static_cast<uint64_t>(pc);
> + if (imm == kEndOfJumpChain) {
> + return kEndOfChain;
> + } else {
> Index: patches/patch-deps_v8_src_codegen_riscv64_cpu-riscv64_cc
> ===================================================================
> RCS file: patches/patch-deps_v8_src_codegen_riscv64_cpu-riscv64_cc
> diff -N patches/patch-deps_v8_src_codegen_riscv64_cpu-riscv64_cc
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-deps_v8_src_codegen_riscv64_cpu-riscv64_cc 1 Sep 2022 00:28:54 -0000
> @@ -0,0 +1,39 @@
> +Implement instruction cache flush using sysarch(RISCV_SYNC_ICACHE).
> +
> +Index: deps/v8/src/codegen/riscv64/cpu-riscv64.cc
> +--- deps/v8/src/codegen/riscv64/cpu-riscv64.cc.orig
> ++++ deps/v8/src/codegen/riscv64/cpu-riscv64.cc
> +@@ -4,7 +4,13 @@
> +
> + // CPU specific code for arm independent of OS goes here.
> +
> +-#include <sys/syscall.h>
> ++#ifdef __OpenBSD__
> ++# include <sys/types.h>
> ++# include <machine/sysarch.h>
> ++#else
> ++# include <sys/syscall.h>
> ++
No comments:
Post a Comment