Compare commits
No commits in common. "89e699e4d1b8b8d6be6f9a29744931e6572bf6c8" and "cbd60728e9a8032bd124e4c34eb464f09a700926" have entirely different histories.
89e699e4d1
...
cbd60728e9
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