aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-03 19:49:01 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-10-03 19:49:01 +0000
commit4542e4c7506b80777d940c63f68889821b50abb8 (patch)
tree1a5845dd89eef90c81aea5b3fd9a66f2a7e1410e /os
parent6d1ecacaf4a001fea2af72ec3682ace59f45adb8 (diff)
downloadChibiOS-4542e4c7506b80777d940c63f68889821b50abb8.tar.gz
ChibiOS-4542e4c7506b80777d940c63f68889821b50abb8.tar.bz2
ChibiOS-4542e4c7506b80777d940c63f68889821b50abb8.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4734 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/kernel/src/chsys.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/os/kernel/src/chsys.c b/os/kernel/src/chsys.c
index 1946a8263..cad546277 100644
--- a/os/kernel/src/chsys.c
+++ b/os/kernel/src/chsys.c
@@ -103,11 +103,9 @@ void chSysInit(void) {
#endif
chSysEnable();
-#if CH_USE_REGISTRY
+ /* Note, &ch_debug points to the string "main" if the registry is
+ active, else the parameter is ignored.*/
chRegSetThreadName((const char *)&ch_debug);
-#else
- chRegSetThreadName("main");
-#endif
#if !CH_NO_IDLE_THREAD
/* This thread has the lowest priority in the system, its role is just to