diff options
Diffstat (limited to 'src/chinit.c')
-rw-r--r-- | src/chinit.c | 6 |
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); } /** |