From 6d1ecacaf4a001fea2af72ec3682ace59f45adb8 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 3 Oct 2012 19:35:13 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4733 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/src/chregistry.c | 6 +++--- os/kernel/src/chsys.c | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'os/kernel/src') 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 -- cgit v1.2.3