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:
parent
b84ce844c6
commit
e9c7df4769
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user