Compare commits
No commits in common. "7826cce063991b9e74901b994521d46ac675774e" and "f8eba63cf05594dfa85534a2688a58517b3abe49" have entirely different histories.
7826cce063
...
f8eba63cf0
1 changed files with 2 additions and 3 deletions
5
isr.c
5
isr.c
|
|
@ -1,6 +1,5 @@
|
|||
#include "isr.h"
|
||||
#include "message.h"
|
||||
#include "usb.h"
|
||||
#include <lpc2148/vic.h>
|
||||
|
||||
// see crt.s
|
||||
|
|
@ -21,7 +20,6 @@ __attribute__((noinline,noreturn))
|
|||
static void stop(const char *why)
|
||||
{
|
||||
uart_printf("\n%s called, REBOOT\n", why);
|
||||
usb_reset();
|
||||
reboot_magic = REBOOT_MAGIC;
|
||||
Reset_Handler();
|
||||
while (1);
|
||||
|
|
@ -99,7 +97,8 @@ void stop_stack(unsigned int const *a)
|
|||
char *stack = a==irq_stack_guard ? "IRQ" : "USER";
|
||||
uart_printf("\n%s stack guard corrupted: 0x%08x (0x%08x)\n",
|
||||
stack, *a, stack_guard_val);
|
||||
stop("stop_stack");
|
||||
Reset_Handler();
|
||||
while (1);
|
||||
}
|
||||
|
||||
unsigned int stack_margin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue