diff options
Diffstat (limited to 'os/kernel/src')
-rw-r--r-- | os/kernel/src/chregistry.c | 6 | ||||
-rw-r--r-- | os/kernel/src/chsys.c | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/os/kernel/src/chregistry.c b/os/kernel/src/chregistry.c index 976e3a51a..8b9f40f85 100644 --- a/os/kernel/src/chregistry.c +++ b/os/kernel/src/chregistry.c @@ -56,10 +56,10 @@ /*
* OS signature in ROM plus debug-related information.
*/
-volatile ROMCONST chdebug_t ch_debug = {
- "CHRT",
- (uint8_t)sizeof (chdebug_t),
+ROMCONST chdebug_t ch_debug = {
+ "main",
(uint8_t)0,
+ (uint8_t)sizeof (chdebug_t),
(uint16_t)((CH_KERNEL_MAJOR << 11) |
(CH_KERNEL_MINOR << 6) |
(CH_KERNEL_PATCH) << 0),
diff --git a/os/kernel/src/chsys.c b/os/kernel/src/chsys.c index 10987f56d..1946a8263 100644 --- a/os/kernel/src/chsys.c +++ b/os/kernel/src/chsys.c @@ -83,9 +83,6 @@ void chSysInit(void) { port_init();
_scheduler_init();
_vt_init();
-#if CH_USE_REGISTRY
- (void)&ch_debug;
-#endif
#if CH_USE_MEMCORE
_core_init();
#endif
@@ -106,7 +103,11 @@ void chSysInit(void) { #endif
chSysEnable();
+#if CH_USE_REGISTRY
+ 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
|