- fixed board file for ml402
- no lto git-svn-id: http://moon:8086/svn/mips@139 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -12,17 +12,27 @@
|
||||
#include "../../regdef.h"
|
||||
|
||||
extern uart_if_t uart_if[];
|
||||
extern void handle_exception (unsigned long *registers);
|
||||
|
||||
int gdb_stub(struct xcptcontext * xcp)
|
||||
{
|
||||
handle_exception((unsigned long *)xcp);
|
||||
return 0;
|
||||
}
|
||||
#ifdef WITH_ROM_GDBSTUB
|
||||
#ifdef WITH_ROM_DEBUGGER
|
||||
const fp_xcpt_t dbg_func = (fp_xcpt_t)0xbfc01fc0;
|
||||
#else
|
||||
const fp_xcpt_t dbg_func = (fp_xcpt_t)gdb_stub;
|
||||
#ifdef WITH_GDB_STUB
|
||||
extern void handle_exception (unsigned long *registers);
|
||||
#else
|
||||
extern int dbg_handler(struct xcptcontext * xcp);
|
||||
#endif
|
||||
|
||||
int dbg_stub(struct xcptcontext * xcp) __attribute__ ((section (".dbg_stub"))) __attribute__ ((used));
|
||||
int dbg_stub(struct xcptcontext * xcp)
|
||||
{
|
||||
#ifdef WITH_GDB_STUB
|
||||
handle_exception((unsigned long *)xcp);
|
||||
return 0;
|
||||
#else
|
||||
return dbg_handler(xcp);
|
||||
#endif
|
||||
}
|
||||
|
||||
const fp_xcpt_t dbg_func = (fp_xcpt_t)dbg_stub;
|
||||
#endif
|
||||
|
||||
#define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
|
||||
|
||||
Reference in New Issue
Block a user