There was an error fetching the commit references. Please try again later.
wrs_main: check for stack overflow and detect reset
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 <adam.wujek@cern.ch>
Showing
- Kconfig 20 additions, 10 deletionsKconfig
- Makefile 3 additions, 0 deletionsMakefile
- arch/lm32/ram-wrs.ld 3 additions, 0 deletionsarch/lm32/ram-wrs.ld
- include/system_checks.h 13 additions, 0 deletionsinclude/system_checks.h
- system_checks.c 72 additions, 0 deletionssystem_checks.c
- wrc_main.c 3 additions, 59 deletionswrc_main.c
- wrs_main.c 33 additions, 14 deletionswrs_main.c
Please register or sign in to comment