Skip to content

Commit 5bdbba0

Browse files
authored
platform/nuttx: Fix dcache operation in os_dcache_flush (#4225)
Replace up_invalidate_dcache_all() with up_flush_dcache_all() in os_dcache_flush() to properly flush the data cache instead of just invalidating it. This ensures that any modified data in the cache is written back to memory before execution. Signed-off-by: Huang Qi <[email protected]>
1 parent 382aa9e commit 5bdbba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/shared/platform/nuttx/nuttx_platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ os_dcache_flush()
118118
up_textheap_data_sync();
119119
#endif
120120
#ifndef CONFIG_BUILD_KERNEL
121-
up_invalidate_dcache_all();
121+
up_flush_dcache_all();
122122
#endif
123123
}
124124

0 commit comments

Comments
 (0)