- conditional inclusion of debugger
- improved linker script git-svn-id: http://moon:8086/svn/mips@116 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -12,7 +12,7 @@ else
|
|||||||
ENDIAN_FLAGS=-EB
|
ENDIAN_FLAGS=-EB
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS=$(ENDIAN_FLAGS) -Os -flto -Wl,-M -I. -I../libsys -msoft-float -march=r3000 -G0 -I../libsys/boards/$(BOARD) -D$(BOARD) -DWITH_GDB_STUB
|
CFLAGS=$(ENDIAN_FLAGS) -Os -flto -Wl,-M -I. -I../libsys -msoft-float -march=r3000 -G0 -I../libsys/boards/$(BOARD) -D$(BOARD) -DWITH_DEBUGGER -DWITH_GDB_STUB
|
||||||
LFLAGS=$(ENDIAN_FLAGS) -Os -flto
|
LFLAGS=$(ENDIAN_FLAGS) -Os -flto
|
||||||
|
|
||||||
ifeq ($(TLB),yes)
|
ifeq ($(TLB),yes)
|
||||||
|
|||||||
@@ -10,9 +10,9 @@
|
|||||||
#include "../../../libsys/irq.h"
|
#include "../../../libsys/irq.h"
|
||||||
#include "../../../libsys/uart.h"
|
#include "../../../libsys/uart.h"
|
||||||
|
|
||||||
|
#ifdef WITH_DEBUGGER
|
||||||
extern uart_if_t uart_if[];
|
extern uart_if_t uart_if[];
|
||||||
extern void handle_exception (unsigned long *registers);
|
extern void handle_exception (unsigned long *registers);
|
||||||
|
|
||||||
extern int dbg_stub(struct xcptcontext * xcp) __attribute__ ((section (".dbg_stub"))) __attribute__ ((used));
|
extern int dbg_stub(struct xcptcontext * xcp) __attribute__ ((section (".dbg_stub"))) __attribute__ ((used));
|
||||||
|
|
||||||
int dbg_stub(struct xcptcontext * xcp)
|
int dbg_stub(struct xcptcontext * xcp)
|
||||||
@@ -48,6 +48,7 @@ char dbg_getchar()
|
|||||||
|
|
||||||
return (char)c;
|
return (char)c;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void board_init(void)
|
void board_init(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ SECTIONS
|
|||||||
*(.ktext)
|
*(.ktext)
|
||||||
*(.text*)
|
*(.text*)
|
||||||
*(.rodata*)
|
*(.rodata*)
|
||||||
. = ORIGIN(rom) + 0x1F00;
|
. = ORIGIN(rom) + LENGTH(rom) - 0x100;
|
||||||
*(.dbg_stub*)
|
*(.dbg_stub*)
|
||||||
} > rom
|
} > rom
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user