sched: Write out a message on startup

Send a "startup" message after completing the mcu init functions.
This may help detect mcu reboots during debugging.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-08-07 23:51:25 -04:00
parent 5e6acf7dbc
commit 156e9b7556
1 changed files with 2 additions and 0 deletions

View File

@ -329,6 +329,8 @@ sched_main(void)
extern void ctr_run_initfuncs(void); extern void ctr_run_initfuncs(void);
ctr_run_initfuncs(); ctr_run_initfuncs();
sendf("starting");
int ret = setjmp(shutdown_jmp); int ret = setjmp(shutdown_jmp);
if (ret) if (ret)
run_shutdown(ret); run_shutdown(ret);