| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8342233 commit 5c9a397
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | 37 | # Reset this number to 0 on major V8 upgrades. | |
| 38 | 38 | # Increment by one for each non-official patch applied to deps/v8. | |
| 39 | - 'v8_embedder_string': '-node.25', | ||
| 39 | + 'v8_embedder_string': '-node.26', | ||
| 40 | 40 | ||
| 41 | 41 | ##### V8 defaults for Node.js ##### | |
| 42 | 42 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,12 +15,12 @@ namespace internal { | |||
| 15 | 15 | void CpuFeatures::FlushICache(void* start, size_t size) { | |
| 16 | 16 | #if !defined(USE_SIMULATOR) | |
| 17 | 17 | char* end = reinterpret_cast<char*>(start) + size; | |
| 18 | - // The definition of this syscall is | ||
| 19 | - // SYSCALL_DEFINE3(riscv_flush_icache, uintptr_t, start, | ||
| 20 | - // uintptr_t, end, uintptr_t, flags) | ||
| 21 | - // The flag here is set to be SYS_RISCV_FLUSH_ICACHE_LOCAL, which is | ||
| 22 | - // defined as 1 in the Linux kernel. | ||
| 23 | - syscall(SYS_riscv_flush_icache, start, end, 1); | ||
| 18 | + // SYS_riscv_flush_icache is a symbolic constant used in user-space code to | ||
| 19 | + // identify the flush_icache system call, while __NR_riscv_flush_icache is the | ||
| 20 | + // corresponding system call number used in the kernel to dispatch the system | ||
| 21 | + // call. | ||
| 22 | + // The flag set to zero will flush all cpu cores. | ||
| 23 | + syscall(__NR_riscv_flush_icache, start, end, 0); | ||
| 24 | 24 | #endif // !USE_SIMULATOR. | |
| 25 | 25 | } | |
| 26 | 26 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments