git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@313 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
9873f0d954
commit
9c26afc8fd
|
@ -43,7 +43,7 @@ void chSysInit(void) {
|
||||||
/*
|
/*
|
||||||
* Now this instructions flow becomes the main thread.
|
* Now this instructions flow becomes the main thread.
|
||||||
*/
|
*/
|
||||||
_InitThread(NORMALPRIO, 0, &mainthread);
|
init_thread(NORMALPRIO, 0, &mainthread);
|
||||||
mainthread.p_state = PRCURR;
|
mainthread.p_state = PRCURR;
|
||||||
currp = &mainthread;
|
currp = &mainthread;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
/*
|
/*
|
||||||
* Initializes a thread structure.
|
* Initializes a thread structure.
|
||||||
*/
|
*/
|
||||||
void _InitThread(tprio_t prio, tmode_t mode, Thread *tp) {
|
void init_thread(tprio_t prio, tmode_t mode, Thread *tp) {
|
||||||
static tid_t nextid = 0;
|
static tid_t nextid = 0;
|
||||||
|
|
||||||
tp->p_tid = nextid++;
|
tp->p_tid = nextid++;
|
||||||
|
@ -99,7 +99,7 @@ Thread *chThdCreate(tprio_t prio, tmode_t mode, void *workspace,
|
||||||
#ifdef CH_USE_DEBUG
|
#ifdef CH_USE_DEBUG
|
||||||
memfill(workspace, wsize, MEM_FILL_PATTERN);
|
memfill(workspace, wsize, MEM_FILL_PATTERN);
|
||||||
#endif
|
#endif
|
||||||
_InitThread(prio, mode, tp);
|
init_thread(prio, mode, tp);
|
||||||
SETUP_CONTEXT(workspace, wsize, pf, arg);
|
SETUP_CONTEXT(workspace, wsize, pf, arg);
|
||||||
#ifdef CH_USE_RESUME
|
#ifdef CH_USE_RESUME
|
||||||
if (tp->p_flags & P_SUSPENDED)
|
if (tp->p_flags & P_SUSPENDED)
|
||||||
|
|
|
@ -157,7 +157,7 @@ struct Thread {
|
||||||
#define ABSPRIO 255
|
#define ABSPRIO 255
|
||||||
|
|
||||||
/* Not an API, don't use into the application code.*/
|
/* Not an API, don't use into the application code.*/
|
||||||
void _InitThread(tprio_t prio, tmode_t mode, Thread *tp);
|
void init_thread(tprio_t prio, tmode_t mode, Thread *tp);
|
||||||
|
|
||||||
/** Thread function.*/
|
/** Thread function.*/
|
||||||
typedef msg_t (*tfunc_t)(void *);
|
typedef msg_t (*tfunc_t)(void *);
|
||||||
|
|
Loading…
Reference in New Issue