git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9169 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2016-03-27 07:51:13 +00:00
parent fefa1a82a0
commit 5c65f91700
1 changed files with 4 additions and 6 deletions

View File

@ -125,7 +125,11 @@ void chSysInit(void) {
#if CH_CFG_NO_IDLE_THREAD == FALSE
/* Now this instructions flow becomes the main thread.*/
#if CH_CFG_USE_REGISTRY == TRUE
currp = _thread_init(&ch.mainthread, (const char *)&ch_debug, NORMALPRIO);
#else
currp = _thread_init(&ch.mainthread, "main", NORMALPRIO);
#endif
#else
/* Now this instructions flow becomes the idle thread.*/
currp = _thread_init(&ch.mainthread, "idle", IDLEPRIO);
@ -149,12 +153,6 @@ void chSysInit(void) {
/* It is alive now.*/
chSysEnable();
#if CH_CFG_USE_REGISTRY == TRUE
/* Note, &ch_debug points to the string "main" if the registry is
active.*/
chRegSetThreadName((const char *)&ch_debug);
#endif
#if CH_CFG_NO_IDLE_THREAD == FALSE
{
static const thread_descriptor_t idle_descriptor = {