mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 02:32:54 +08:00
RISC-V: Prepare for CONFIG_BUILD_KERNEL
- Thread context prior to system call needs to be preserved - Allocate a kernel heap
This commit is contained in:
@@ -189,7 +189,7 @@ int exec_module(FAR const struct binary_s *binp,
|
||||
goto errout_with_addrenv;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
||||
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_ARCH_KERNEL_STACK)
|
||||
/* Allocate the kernel stack */
|
||||
|
||||
ret = up_addrenv_kstackalloc(&tcb->cmn);
|
||||
|
||||
Reference in New Issue
Block a user