mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
sched/task_init: change the stack pointer type to (void *)
change the stack pointer type from (uint32_t *) to (void *) Change-Id: I90bb7d6a9cb0184c133578a1a2ae9a19c233ad30 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -117,7 +117,7 @@ int exec_module(FAR const struct binary_s *binp)
|
||||
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
||||
save_addrenv_t oldenv;
|
||||
#endif
|
||||
FAR uint32_t *stack;
|
||||
FAR void *stack;
|
||||
pid_t pid;
|
||||
int ret;
|
||||
|
||||
@@ -157,7 +157,7 @@ int exec_module(FAR const struct binary_s *binp)
|
||||
* will need to change if/when we want to support dynamic stack allocation.
|
||||
*/
|
||||
|
||||
stack = (FAR uint32_t *)kumm_malloc(binp->stacksize);
|
||||
stack = kumm_malloc(binp->stacksize);
|
||||
if (!stack)
|
||||
{
|
||||
ret = -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user