sched: Rename task_startup to nxtask_startup

to follow the naming convention

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I3594d12a65e8cacea99bc295d622628304c3f9f8
This commit is contained in:
Xiang Xiao 2020-07-01 01:47:06 +08:00 committed by patacongo
parent b84ce844c6
commit e9c7df4769
27 changed files with 120 additions and 115 deletions

View File

@ -71,8 +71,8 @@
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe * - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recoved the linker value then by simply taking the address of * - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -108,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -71,8 +71,8 @@
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe * - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recoved the linker value then by simply taking the address of * - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -108,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -68,14 +68,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -111,7 +111,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -108,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -108,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -65,14 +65,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in * not actual uint32_t storage locations! They are only used meaningfully in
* the following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe * - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recoved the linker value then by simply taking the address of * - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -108,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -70,14 +70,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in * not actual uint32_t storage locations! They are only used meaningfully in
* the following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe * - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recoved the linker value then by simply taking the address of * - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -113,7 +113,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -66,14 +66,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in * not actual uint32_t storage locations! They are only used meaningfully in
* the following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -109,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -71,8 +71,8 @@
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe * - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recoved the linker value then by simply taking the address of * - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -108,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -71,8 +71,8 @@
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe * - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recoved the linker value then by simply taking the address of * - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -108,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -50,6 +50,7 @@
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
#ifndef CONFIG_NUTTX_USERSPACE #ifndef CONFIG_NUTTX_USERSPACE
@ -64,14 +65,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe * - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recoved the linker value then by simply taking the address of * - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -107,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -66,14 +66,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -109,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -50,6 +50,7 @@
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
#ifndef CONFIG_NUTTX_USERSPACE #ifndef CONFIG_NUTTX_USERSPACE
@ -64,14 +65,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe * - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recoved the linker value then by simply taking the address of * - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -107,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -51,6 +51,7 @@
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
#ifndef CONFIG_NUTTX_USERSPACE #ifndef CONFIG_NUTTX_USERSPACE
@ -65,14 +66,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -108,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -74,8 +74,8 @@
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -111,7 +111,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -50,6 +50,7 @@
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
#ifndef CONFIG_NUTTX_USERSPACE #ifndef CONFIG_NUTTX_USERSPACE
@ -64,14 +65,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe * - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recoved the linker value then by simply taking the address of * - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -107,7 +108,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -51,6 +51,7 @@
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
#ifndef CONFIG_NUTTX_USERSPACE #ifndef CONFIG_NUTTX_USERSPACE
@ -65,14 +66,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -108,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -66,14 +66,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -109,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -66,14 +66,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -109,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -66,14 +66,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -109,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -66,14 +66,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -109,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -66,14 +66,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -109,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -72,8 +72,8 @@
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -109,7 +109,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -51,14 +51,14 @@
* Public Data * Public Data
****************************************************************************/ ****************************************************************************/
/* These 'addresses' of these values are setup by the linker script. They are /* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the * not actual uint32_t storage locations! They are only used meaningfully in
* following way: * the following way:
* *
* - The linker script defines, for example, the symbol_sdata. * - The linker script defines, for example, the symbol_sdata.
* - The declaration extern uint32_t _sdata; makes C happy. C will believe * - The declaration extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is * that the value _sdata is the address of a uint32_t variable _data (it
* not!). * is not!).
* - We can recover the linker value then by simply taking the address of * - We can recover the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata; * of _data. like: uint32_t *pdata = &_sdata;
*/ */
@ -94,7 +94,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -94,7 +94,7 @@ const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
/* Task/thread startup routines */ /* Task/thread startup routines */
.task_startup = task_startup, .task_startup = nxtask_startup,
#ifndef CONFIG_DISABLE_PTHREAD #ifndef CONFIG_DISABLE_PTHREAD
.pthread_startup = pthread_startup, .pthread_startup = pthread_startup,
#endif #endif

View File

@ -153,7 +153,7 @@ extern "C"
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Name: task_startup * Name: nxtask_startup
* *
* Description: * Description:
* This function is the user-space, task startup function. It is called * This function is the user-space, task startup function. It is called
@ -169,7 +169,7 @@ extern "C"
****************************************************************************/ ****************************************************************************/
#ifndef __KERNEL__ #ifndef __KERNEL__
void task_startup(main_t entrypt, int argc, FAR char *argv[]) void nxtask_startup(main_t entrypt, int argc, FAR char *argv[])
noreturn_function; noreturn_function;
#endif #endif

View File

@ -51,7 +51,7 @@
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Name: task_startup * Name: nxtask_startup
* *
* Description: * Description:
* This function is the user-space, task startup function. It is called * This function is the user-space, task startup function. It is called
@ -66,7 +66,7 @@
* *
****************************************************************************/ ****************************************************************************/
void task_startup(main_t entrypt, int argc, FAR char *argv[]) void nxtask_startup(main_t entrypt, int argc, FAR char *argv[])
{ {
DEBUGASSERT(entrypt); DEBUGASSERT(entrypt);