Skip to content

Commit 4c48220

Browse files
jasonbuno1wudi
authored andcommitted
nuttx: remove the up_x API for kernel build
Signed-off-by: buxiasen <[email protected]>
1 parent 5d8fe5d commit 4c48220

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/shared/platform/nuttx/nuttx_platform.c

+4
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,17 @@ os_dcache_flush()
117117
&& defined(CONFIG_ARCH_HAVE_TEXT_HEAP_SEPARATE_DATA_ADDRESS)
118118
up_textheap_data_sync();
119119
#endif
120+
#ifndef CONFIG_BUILD_KERNEL
120121
up_invalidate_dcache_all();
122+
#endif
121123
}
122124

123125
void
124126
os_icache_flush(void *start, size_t len)
125127
{
128+
#ifndef CONFIG_BUILD_KERNEL
126129
up_invalidate_icache((uintptr_t)start, (uintptr_t)start + len);
130+
#endif
127131
}
128132

129133
#if (WASM_MEM_DUAL_BUS_MIRROR != 0)

0 commit comments

Comments
 (0)