From fb639847713fed3ed2c94e41e7f21d09cebe4af2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 8 Feb 2002 20:03:26 +0000 Subject: 2002-02-08 Joel Sherrill * Merged r46kstub.c into RTEMS distribution without modification. I got the code from Franz Fischer who had used this with an old version of RTEMS with the mips64orion port of RTEMS. After adding this to the repository, I will tailor this to work with the RTEMS exception processing model and trim no longer needed parts. * ChangeLog, gdb_if.h, ioaddr.h, limits.h, Makefile, mips_opcode.h, r4600.h, r46kstub.c, r46kstub.ld, README, stubinit.S: --- c/src/lib/libbsp/mips/shared/gdbstub/r46kstub.ld | 53 ++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 c/src/lib/libbsp/mips/shared/gdbstub/r46kstub.ld (limited to 'c/src/lib/libbsp/mips/shared/gdbstub/r46kstub.ld') diff --git a/c/src/lib/libbsp/mips/shared/gdbstub/r46kstub.ld b/c/src/lib/libbsp/mips/shared/gdbstub/r46kstub.ld new file mode 100644 index 0000000000..675a7ee613 --- /dev/null +++ b/c/src/lib/libbsp/mips/shared/gdbstub/r46kstub.ld @@ -0,0 +1,53 @@ +MEMORY +{ + NUL : ORIGIN = 0xa00f0000, LENGTH = 0 + RAM : ORIGIN = 0xa00fe000, LENGTH = 8K + ROM : ORIGIN = 0xbfc00000, LENGTH = 8K +} + +SECTIONS +{ + /* Initialized data is _not_ supported. */ + /* Assign it to an empty region in order */ + /* to force a link error if any exists. */ + .data 0xa00f0000 (NOLOAD): { + _fdata = .; + *(.data) + . = ALIGN(8); + _gp = . + 0x8000; + *(.sdata) + . = ALIGN(8); + _edata = .; + } >NUL + + /* Assign uninitialized read/write data to RAM. */ + .bss 0xa00fe000 (NOLOAD): { + _fbss = .; + stubinit.o(.bss) + *(.sbss) + *(.bss) + *(.scommon) + *(COMMON) + . = ALIGN(8); + _end = .; + } >RAM + + /* Assign code and read-only data to ROM. This */ + /* section MUST start at the reset address, */ + /* and the reset code MUST be linked first. */ + .text 0xbfc00000: { + _ftext = .; + stubinit.o(.text) + . = ALIGN(8); + r46kstub.o(.text) + . = ALIGN(8); + *(.rdata) + . = ALIGN(8); + *(.rodata) + . = ALIGN(8); + _etext = .; + } >ROM = 0 + +} + +ENTRY(_reset_exception) -- cgit v1.2.3