Changes since nodejs 8.8.1: - doc: add Gibson Fahnestock to Release team - deps: update npm to 5.5.1 - http2: The exposed http2 socket is no longer manipulatable - module: support custom paths to require.resolve() - util: util.TextEncoder and util.TextDecoder are no longer experimental. There will no longer be a warning when they are used
24 lines
891 B
C++
24 lines
891 B
C++
$NetBSD: patch-deps_v8_src_arm_cpu-arm.cc,v 1.1 2017/11/01 12:07:31 fhajny Exp $
|
|
|
|
--- deps/v8/src/arm/cpu-arm.cc.orig 2016-04-26 19:50:10.000000000 +0000
|
|
+++ deps/v8/src/arm/cpu-arm.cc
|
|
@@ -7,6 +7,9 @@
|
|
#ifdef __QNXNTO__
|
|
#include <sys/mman.h> // for cache flushing.
|
|
#undef MAP_TYPE
|
|
+#elif defined(__NetBSD__)
|
|
+#include <sys/types.h>
|
|
+#include <machine/sysarch.h> // for cache flushing.
|
|
#else
|
|
#include <sys/syscall.h> // for cache flushing.
|
|
#endif
|
|
@@ -24,6 +27,9 @@ void CpuFeatures::FlushICache(void* star
|
|
#if !defined(USE_SIMULATOR)
|
|
#if V8_OS_QNX
|
|
msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE);
|
|
+#elif defined(__NetBSD__)
|
|
+ struct arm_sync_icache_args args = { .addr = (uintptr_t)start, .len = size };
|
|
+ sysarch(ARM_SYNC_ICACHE, (void *)&args);
|
|
#else
|
|
register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start);
|
|
register uint32_t end asm("r1") = beg + size;
|