aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src
diff options
context:
space:
mode:
Diffstat (limited to 'os/kernel/src')
-rw-r--r--os/kernel/src/chregistry.c4
-rw-r--r--os/kernel/src/chsys.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/os/kernel/src/chregistry.c b/os/kernel/src/chregistry.c
index 971133457..976e3a51a 100644
--- a/os/kernel/src/chregistry.c
+++ b/os/kernel/src/chregistry.c
@@ -56,9 +56,9 @@
/*
* OS signature in ROM plus debug-related information.
*/
-ROMCONST chroot_t ch_root = {
+volatile ROMCONST chdebug_t ch_debug = {
"CHRT",
- (uint8_t)sizeof (chroot_t),
+ (uint8_t)sizeof (chdebug_t),
(uint8_t)0,
(uint16_t)((CH_KERNEL_MAJOR << 11) |
(CH_KERNEL_MINOR << 6) |
diff --git a/os/kernel/src/chsys.c b/os/kernel/src/chsys.c
index 9a7be60ee..10987f56d 100644
--- a/os/kernel/src/chsys.c
+++ b/os/kernel/src/chsys.c
@@ -83,6 +83,9 @@ void chSysInit(void) {
port_init();
_scheduler_init();
_vt_init();
+#if CH_USE_REGISTRY
+ (void)&ch_debug;
+#endif
#if CH_USE_MEMCORE
_core_init();
#endif