mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Squashed commit of the following:
sched/init/nx_bringup.c: Fix a naming collision.
sched/init: Rename os_start() to nx_start()
sched/init: Rename os_smp* to nx_smp*
sched/init: Rename os_bringup to nx_bringup
sched/init: rename all internal static functions to begin with nx_ vs os_
This commit is contained in:
@@ -52,10 +52,10 @@
|
||||
* initialization.
|
||||
*/
|
||||
|
||||
#define OSINIT_MM_READY() (g_os_initstate >= OSINIT_MEMORY)
|
||||
#define OSINIT_HW_READY() (g_os_initstate >= OSINIT_HARDWARE)
|
||||
#define OSINIT_OS_READY() (g_os_initstate >= OSINIT_OSREADY)
|
||||
#define OSINIT_OS_INITIALIZING() (g_os_initstate < OSINIT_OSREADY)
|
||||
#define OSINIT_MM_READY() (g_nx_initstate >= OSINIT_MEMORY)
|
||||
#define OSINIT_HW_READY() (g_nx_initstate >= OSINIT_HARDWARE)
|
||||
#define OSINIT_OS_READY() (g_nx_initstate >= OSINIT_OSREADY)
|
||||
#define OSINIT_OS_INITIALIZING() (g_nx_initstate < OSINIT_OSREADY)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
/* Initialization state. OS bring-up occurs in several phases: */
|
||||
|
||||
enum os_initstate_e
|
||||
enum nx_initstate_e
|
||||
{
|
||||
OSINIT_POWERUP = 0, /* Power-up. No initialization yet performed.
|
||||
* Depends on .bss initialization logic for this
|
||||
@@ -100,7 +100,7 @@ extern "C"
|
||||
* hardware resources may not yet be available to the OS-internal logic.
|
||||
*/
|
||||
|
||||
EXTERN uint8_t g_os_initstate; /* See enum os_initstate_e */
|
||||
EXTERN uint8_t g_nx_initstate; /* See enum nx_initstate_e */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
@@ -110,10 +110,10 @@ EXTERN uint8_t g_os_initstate; /* See enum os_initstate_e */
|
||||
|
||||
int CONFIG_USER_ENTRYPOINT(int argc, char *argv[]);
|
||||
|
||||
/* Functions contained in os_task.c *****************************************/
|
||||
/* Functions contained in nx_task.c *****************************************/
|
||||
/* OS entry point called by boot logic */
|
||||
|
||||
void os_start(void) noreturn_function;
|
||||
void nx_start(void) noreturn_function;
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -101,7 +101,7 @@ enum syslog_init_e
|
||||
{
|
||||
SYSLOG_INIT_RESET = 0, /* Power on SYSLOG initializaton phase */
|
||||
SYSLOG_INIT_EARLY, /* Early initialization in up_initialize() */
|
||||
SYSLOG_INIT_LATE /* Late initialization in os_start(). */
|
||||
SYSLOG_INIT_LATE /* Late initialization in nx_start(). */
|
||||
};
|
||||
|
||||
/* This structure provides the interface to a SYSLOG device */
|
||||
|
||||
Reference in New Issue
Block a user