summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 0791bc5..083be94 100644
--- a/build.zig
+++ b/build.zig
@@ -1121,6 +1121,9 @@ fn linkerScript(b: *std.Build, stack_size: u32, peripherals_ld: ?[]const u8) []c
\\/* ESP32-P4 mask ROM entry points, the only "library" this image links against */
\\ets_printf = 0x4fc00024;
\\ets_delay_us = 0x4fc0003c;
+ \\/* Invalidate the caches. The bootloader leaves lines that do not match the mapping it
+ \\ finally installs, so a large image reads its own .rodata and gets its own .text back. */
+ \\Cache_Invalidate_All = 0x4fc00404;
\\
\\MEMORY {{
\\ /* Flash-mapped code and rodata.