aboutsummaryrefslogtreecommitdiffstats
path: root/src/chinit.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-22 15:29:48 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-22 15:29:48 +0000
commit9a1c91e6ee9baaee3529e16fc732cbd9c7e99844 (patch)
tree5916995c67730dc328d2bd40392f6d21c3a54c7e /src/chinit.c
parent9b2c9869dd0f5b544d6f1c43c2abea30e5a27b94 (diff)
downloadChibiOS-9a1c91e6ee9baaee3529e16fc732cbd9c7e99844.tar.gz
ChibiOS-9a1c91e6ee9baaee3529e16fc732cbd9c7e99844.tar.bz2
ChibiOS-9a1c91e6ee9baaee3529e16fc732cbd9c7e99844.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@437 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chinit.c')
-rw-r--r--src/chinit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chinit.c b/src/chinit.c
index 0063fa458..0d4aafea1 100644
--- a/src/chinit.c
+++ b/src/chinit.c
@@ -49,7 +49,7 @@ void chSysInit(void) {
/*
* Now this instructions flow becomes the main thread.
*/
- init_thread(NORMALPRIO, &mainthread);
+ init_thread(&mainthread, NORMALPRIO);
mainthread.p_state = PRCURR;
currp = &mainthread;
@@ -61,8 +61,8 @@ void chSysInit(void) {
* serve interrupts in its context while keeping the lowest energy saving
* mode compatible with the system status.
*/
- chThdCreateFast(IDLEPRIO, waIdleThread, sizeof(waIdleThread),
- (tfunc_t)_IdleThread);
+ chThdCreateStatic(waIdleThread, sizeof(waIdleThread),
+ IDLEPRIO, (tfunc_t)_IdleThread, NULL);
}
/**