• Adam Wujek's avatar
    wrs_main: check for stack overflow and detect reset · da3da2d9
    Adam Wujek authored
    Add checking stack overflow and detecting reset to wrs. Code common for wrpc
    and wrs is placed in system_checks.c and .h. Work is based on following
    commits in wrc_main.c:
    1704a668 main: check for stack overflow
    7836c39e Optionally detect reset and print a stack trace
    
    Additionally:
    --update Kconfig to have a possibility to select CHECK_RESET also for switch,
      not only for node as before
    --and _endram to ram-wrs.ld
    
    When "stack overflow" occurs then message is printed once every second.
    When reset occours then LM32 will print stack trace and reset once more.
    NOTE: I couldn't get spll to work after reset, for sure problem is in
          ad9516 init function, but not only there.
    Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
    da3da2d9
Name
Last commit
Last update
arch/lm32 Loading commit data...
boards/arria Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 0250bb3b
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
revision.c Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrc_ptp_noposix.c Loading commit data...
wrs_main.c Loading commit data...