mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Remove final traces of the 8015 from the NuttX source tree
This commit is contained in:
@@ -100,13 +100,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_CUSTOM_STACK
|
||||
static int thread_create(FAR const char *name, uint8_t ttype, int priority,
|
||||
int stack_size, main_t entry, FAR char * const argv[])
|
||||
#else
|
||||
static int thread_create(FAR const char *name, uint8_t ttype, int priority,
|
||||
main_t entry, FAR char * const argv[])
|
||||
#endif
|
||||
{
|
||||
FAR struct task_tcb_s *tcb;
|
||||
pid_t pid;
|
||||
@@ -147,14 +142,12 @@ static int thread_create(FAR const char *name, uint8_t ttype, int priority,
|
||||
|
||||
/* Allocate the stack for the TCB */
|
||||
|
||||
#ifndef CONFIG_CUSTOM_STACK
|
||||
ret = up_create_stack((FAR struct tcb_s *)tcb, stack_size, ttype);
|
||||
if (ret < OK)
|
||||
{
|
||||
errcode = -ret;
|
||||
goto errout_with_tcb;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize the task control block */
|
||||
|
||||
@@ -245,19 +238,10 @@ errout:
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_CUSTOM_STACK
|
||||
int task_create(FAR const char *name, int priority,
|
||||
int stack_size, main_t entry, FAR char * const argv[])
|
||||
#else
|
||||
int task_create(FAR const char *name, int priority,
|
||||
main_t entry, FAR char * const argv[])
|
||||
#endif
|
||||
{
|
||||
#ifndef CONFIG_CUSTOM_STACK
|
||||
return thread_create(name, TCB_FLAG_TTYPE_TASK, priority, stack_size, entry, argv);
|
||||
#else
|
||||
return thread_create(name, TCB_FLAG_TTYPE_TASK, priority, entry, argv);
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@@ -276,18 +260,9 @@ int task_create(FAR const char *name, int priority,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_CUSTOM_STACK
|
||||
int kernel_thread(FAR const char *name, int priority,
|
||||
int stack_size, main_t entry, FAR char * const argv[])
|
||||
#else
|
||||
int kernel_thread(FAR const char *name, int priority,
|
||||
main_t entry, FAR char * const argv[])
|
||||
#endif
|
||||
{
|
||||
#ifndef CONFIG_CUSTOM_STACK
|
||||
return thread_create(name, TCB_FLAG_TTYPE_KERNEL, priority, stack_size, entry, argv);
|
||||
#else
|
||||
return thread_create(name, TCB_FLAG_TTYPE_KERNEL, priority, entry, argv);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user