From 774648de0f45ecbdf1e07f2db6a844331dbca12b Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 16 Oct 2022 00:23:21 +0800 Subject: [PATCH] risc0v/bl602: Call kthread_create instead of nxtask_create in bl_os_task_create since the kernel component should use the kernel thread instead the normal task Signed-off-by: Xiang Xiao --- arch/risc-v/src/bl602/bl602_os_hal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/risc-v/src/bl602/bl602_os_hal.c b/arch/risc-v/src/bl602/bl602_os_hal.c index 6ab0e43c34..011dd1bd8b 100644 --- a/arch/risc-v/src/bl602/bl602_os_hal.c +++ b/arch/risc-v/src/bl602/bl602_os_hal.c @@ -325,7 +325,7 @@ int bl_os_task_create(const char *name, uint32_t prio, void *task_handle) { - return nxtask_create(name, prio, stack_depth, entry, (char **)¶m); + return kthread_create(name, prio, stack_depth, entry, (char **)¶m); } /****************************************************************************