nuttx: remove the up_x API for kernel build (#4154)

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
Co-authored-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
Huang Qi 2025-03-27 14:56:02 +08:00 committed by GitHub
parent 4a17741670
commit 1931f2e5d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,13 +117,17 @@ os_dcache_flush()
&& defined(CONFIG_ARCH_HAVE_TEXT_HEAP_SEPARATE_DATA_ADDRESS) && defined(CONFIG_ARCH_HAVE_TEXT_HEAP_SEPARATE_DATA_ADDRESS)
up_textheap_data_sync(); up_textheap_data_sync();
#endif #endif
#ifndef CONFIG_BUILD_KERNEL
up_invalidate_dcache_all(); up_invalidate_dcache_all();
#endif
} }
void void
os_icache_flush(void *start, size_t len) os_icache_flush(void *start, size_t len)
{ {
#ifndef CONFIG_BUILD_KERNEL
up_invalidate_icache((uintptr_t)start, (uintptr_t)start + len); up_invalidate_icache((uintptr_t)start, (uintptr_t)start + len);
#endif
} }
#if (WASM_MEM_DUAL_BUS_MIRROR != 0) #if (WASM_MEM_DUAL_BUS_MIRROR != 0)