|
Added
Link Here
|
| 1 |
--- deps/v8/src/codegen/arm/cpu-arm.cc.orig 2021-10-12 04:13:34 UTC |
| 2 |
+++ deps/v8/src/codegen/arm/cpu-arm.cc |
| 3 |
@@ -2,12 +2,14 @@ |
| 4 |
// Use of this source code is governed by a BSD-style license that can be |
| 5 |
// found in the LICENSE file. |
| 6 |
|
| 7 |
+#include "include/v8config.h" |
| 8 |
// CPU specific code for arm independent of OS goes here. |
| 9 |
#ifdef __arm__ |
| 10 |
#ifdef __QNXNTO__ |
| 11 |
#include <sys/mman.h> // for cache flushing. |
| 12 |
#undef MAP_TYPE // NOLINT |
| 13 |
#elif V8_OS_FREEBSD |
| 14 |
+#include <sys/cdefs.h> |
| 15 |
#include <machine/sysarch.h> // for cache flushing |
| 16 |
#include <sys/types.h> |
| 17 |
#else |
| 18 |
@@ -29,9 +31,7 @@ V8_NOINLINE void CpuFeatures::FlushICache(void* start, |
| 19 |
#if V8_OS_QNX |
| 20 |
msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE); |
| 21 |
#elif V8_OS_FREEBSD |
| 22 |
- struct arm_sync_icache_args args = { |
| 23 |
- .addr = reinterpret_cast<uintptr_t>(start), .len = size}; |
| 24 |
- sysarch(ARM_SYNC_ICACHE, reinterpret_cast<void*>(&args)); |
| 25 |
+ arm_sync_icache(reinterpret_cast<uintptr_t>(start), size); |
| 26 |
#else |
| 27 |
register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start); |
| 28 |
register uint32_t end asm("r1") = beg + size; |