diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-05-28 15:19:46 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-05-28 15:19:46 +0000 |
commit | 9c26afc8fde6d30d2149a844cb53e45507a7b5f7 (patch) | |
tree | ee87aa60e8de07b6834780ed53507122e70558f7 | |
parent | 9873f0d9548d49d471b3fcb272b081f2c3b6cd64 (diff) | |
download | ChibiOS-9c26afc8fde6d30d2149a844cb53e45507a7b5f7.tar.gz ChibiOS-9c26afc8fde6d30d2149a844cb53e45507a7b5f7.tar.bz2 ChibiOS-9c26afc8fde6d30d2149a844cb53e45507a7b5f7.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@313 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | src/chinit.c | 2 | ||||
-rw-r--r-- | src/chthreads.c | 4 | ||||
-rw-r--r-- | src/include/threads.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/chinit.c b/src/chinit.c index 213f8b4e8..ec7626e6a 100644 --- a/src/chinit.c +++ b/src/chinit.c @@ -43,7 +43,7 @@ void chSysInit(void) { /*
* Now this instructions flow becomes the main thread.
*/
- _InitThread(NORMALPRIO, 0, &mainthread);
+ init_thread(NORMALPRIO, 0, &mainthread);
mainthread.p_state = PRCURR;
currp = &mainthread;
diff --git a/src/chthreads.c b/src/chthreads.c index fa32d5e36..797591243 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -27,7 +27,7 @@ /*
* 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;
tp->p_tid = nextid++;
@@ -99,7 +99,7 @@ Thread *chThdCreate(tprio_t prio, tmode_t mode, void *workspace, #ifdef CH_USE_DEBUG
memfill(workspace, wsize, MEM_FILL_PATTERN);
#endif
- _InitThread(prio, mode, tp);
+ init_thread(prio, mode, tp);
SETUP_CONTEXT(workspace, wsize, pf, arg);
#ifdef CH_USE_RESUME
if (tp->p_flags & P_SUSPENDED)
diff --git a/src/include/threads.h b/src/include/threads.h index d9bb467b9..297c56a68 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -157,7 +157,7 @@ struct Thread { #define ABSPRIO 255
/* 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.*/
typedef msg_t (*tfunc_t)(void *);
|