mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:18:50 +08:00
[fixup] add cache maintenance ops;
fix bugs on cache maintenance when starting user app
This commit is contained in:
@@ -1097,6 +1097,8 @@ static void _lwp_thread_entry(void *parameter)
|
||||
icache_invalid_all();
|
||||
}
|
||||
|
||||
rt_hw_icache_invalidate_all();
|
||||
|
||||
#ifdef ARCH_MM_MMU
|
||||
arch_start_umode(lwp->args, lwp->text_entry, (void *)USER_STACK_VEND, tid->stack_addr + tid->stack_size);
|
||||
#else
|
||||
|
||||
@@ -467,6 +467,10 @@ void lwp_free(struct rt_lwp* lwp)
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
level = rt_hw_interrupt_disable();
|
||||
}
|
||||
|
||||
/* for parent */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user