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:
parent
62b777b1cd
commit
2fc02ec4a4
@ -117,7 +117,7 @@ int exec_module(FAR const struct binary_s *binp)
|
|||||||
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
||||||
save_addrenv_t oldenv;
|
save_addrenv_t oldenv;
|
||||||
#endif
|
#endif
|
||||||
FAR uint32_t *stack;
|
FAR void *stack;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
int ret;
|
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.
|
* 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)
|
if (!stack)
|
||||||
{
|
{
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
|
@ -964,7 +964,7 @@ FAR struct socketlist *nxsched_get_sockets(void);
|
|||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
int nxtask_init(FAR struct tcb_s *tcb, const char *name, int priority,
|
int nxtask_init(FAR struct tcb_s *tcb, const char *name, int priority,
|
||||||
FAR uint32_t *stack, uint32_t stack_size, main_t entry,
|
FAR void *stack, uint32_t stack_size, main_t entry,
|
||||||
FAR char * const argv[]);
|
FAR char * const argv[]);
|
||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int nxtask_init(FAR struct tcb_s *tcb, const char *name, int priority,
|
int nxtask_init(FAR struct tcb_s *tcb, const char *name, int priority,
|
||||||
FAR uint32_t *stack, uint32_t stack_size,
|
FAR void *stack, uint32_t stack_size,
|
||||||
main_t entry, FAR char * const argv[])
|
main_t entry, FAR char * const argv[])
|
||||||
{
|
{
|
||||||
FAR struct task_tcb_s *ttcb = (FAR struct task_tcb_s *)tcb;
|
FAR struct task_tcb_s *ttcb = (FAR struct task_tcb_s *)tcb;
|
||||||
|
Loading…
Reference in New Issue
Block a user