summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-11-02 21:20:49 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-11-02 21:20:49 +0100
commit5ee4b2b2c26bbc35d1669840f0676e8aa383b984 (patch)
tree534391e3799f1d36b78c815ec22e9bec6c1e7148
parenta2ce5dc436999bebc3172bd9a01914a96006b949 (diff)
downloadnuttx-5ee4b2b2c26bbc35d1669840f0676e8aa383b984.tar.gz
nuttx-5ee4b2b2c26bbc35d1669840f0676e8aa383b984.tar.bz2
nuttx-5ee4b2b2c26bbc35d1669840f0676e8aa383b984.zip
Cleanup of docs / comments
-rw-r--r--nuttx/arch/arm/src/armv7-m/up_stackcheck.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/nuttx/arch/arm/src/armv7-m/up_stackcheck.c b/nuttx/arch/arm/src/armv7-m/up_stackcheck.c
index eb4f93830..895ae8b16 100644
--- a/nuttx/arch/arm/src/armv7-m/up_stackcheck.c
+++ b/nuttx/arch/arm/src/armv7-m/up_stackcheck.c
@@ -14,19 +14,17 @@ __stack_overflow_trap(void)
{
/* if we get here, the stack has overflowed */
- /* force hard fault */
uint32_t regval;
- /* Set up for the system reset, retaining the priority group from the
- * the AIRCR register.
- */
-
+ /* force hard fault */
regval = getreg32(NVIC_INTCTRL);
regval |= NVIC_INTCTRL_NMIPENDSET;
putreg32(regval, NVIC_INTCTRL);
- /* trap */
- //asm ( "b .");
+ /* trap */
+ /* XXX no need to trap it here, the fault handler gets to it
+ asm ( "b .");
+ */
}
void