- fixed extern

- cleaned up


git-svn-id: http://moon:8086/svn/mips@74 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-01-11 22:32:56 +00:00
parent 06f7be107b
commit b1250358e1
2 changed files with 4 additions and 7 deletions
+4 -1
View File
@@ -13,6 +13,9 @@
#include "../../uart.h"
#include "../../console.h"
extern void dbg_init();
extern void dbg_handler(struct xcptcontext * xcp);
extern uart_if_t uart_if[];
extern ps2_if_t ps2_if[];
extern vga_if_t vga_if;
@@ -55,7 +58,7 @@ void board_init(void)
// Initalize debugger
dbg_init();
interrupt_register(2, debug_int);
interrupt_register(2, dbg_handler);
interrupt_enable(2);
// flush stdin
-6
View File
@@ -560,12 +560,6 @@ void dbg_handler(struct xcptcontext * xcp)
memcpy(&xcp_last, xcp, sizeof(EXCEPTION_CONTEXT));
}
void debug_int(struct xcptcontext * xcp)
{
dbg_handler(xcp);
}
int debug_break(struct xcptcontext * xcp)
{
dbg_handler(xcp);