From b02dcc6d42f1c2c00b4e0841872b0c572aa10ee9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 6 Aug 2014 14:22:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7142 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/nil/include/nil.h | 2 +- os/nil/ports/e200/nilcore.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'os/nil') diff --git a/os/nil/include/nil.h b/os/nil/include/nil.h index 29ac77b3b..f815b2153 100644 --- a/os/nil/include/nil.h +++ b/os/nil/include/nil.h @@ -256,7 +256,7 @@ typedef struct nil_thread thread_t; "be zero or greater than one" #endif -#if NIL_CFG_ENABLE_ASSERTS +#if NIL_CFG_ENABLE_ASSERTS || NIL_CFG_ENABLE_STACK_CHECK #define NIL_DBG_ENABLED TRUE #else #define NIL_DBG_ENABLED FALSE diff --git a/os/nil/ports/e200/nilcore.h b/os/nil/ports/e200/nilcore.h index 82f04bf1a..2fbfbf911 100644 --- a/os/nil/ports/e200/nilcore.h +++ b/os/nil/ports/e200/nilcore.h @@ -314,7 +314,7 @@ struct port_intctx { #define port_switch(ntp, otp) { \ register struct port_intctx *sp asm ("%r1"); \ if ((stkalign_t *)(sp - 1) < otp->stklim) \ - chDbgPanic("stack overflow"); \ + chSysHalt("stack overflow"); \ _port_switch(ntp, otp); \ } #endif -- cgit v1.2.3