- fixed extern
- cleaned up git-svn-id: http://moon:8086/svn/mips@74 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user