diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-01-31 15:27:43 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-01-31 15:27:43 +0000 |
commit | 433d408b9d1f391b9dcb721449a90e0dc39f5ba8 (patch) | |
tree | c23519e6403d02782833b988f4628cb33958e763 /c/src/lib/libbsp/mips/jmr3904/start/start.S | |
parent | 2004-01-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-433d408b9d1f391b9dcb721449a90e0dc39f5ba8.tar.bz2 |
2004-01-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge-in clock/Makefile.am, console/Makefile.am,
start/Makefile.am, startup/Makefile.am, timer/Makefile.am,
wrapup/Makefile.am. Use automake compilation rules.
* clock/Makefile.am, console/Makefile.am, start/Makefile.am,
startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am: Remove.
* configure.ac: Reflect changes above.
Diffstat (limited to 'c/src/lib/libbsp/mips/jmr3904/start/start.S')
-rw-r--r-- | c/src/lib/libbsp/mips/jmr3904/start/start.S | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/mips/jmr3904/start/start.S b/c/src/lib/libbsp/mips/jmr3904/start/start.S index 525232e2c8..77435d2376 100644 --- a/c/src/lib/libbsp/mips/jmr3904/start/start.S +++ b/c/src/lib/libbsp/mips/jmr3904/start/start.S @@ -50,19 +50,19 @@ .ent _start _start: .set noreorder - # Get the address of start into $5 in a position independent fashion. - # This lets us know whether we have been relocated or not. - + /* Get the address of start into $5 in a position independent fashion. + ** This lets us know whether we have been relocated or not. + */ $LF1 = . + 8 bal $LF1 nop _branch: move $5, $31 # $5 == where are we li $6, 0x8800000c # $6 == where we want to be - #la $6,_branch +/* #la $6,_branch */ beq $5, $6, _start_in_ram nop - # relocate the code from EEPROM to RAM + /* relocate the code from EEPROM to RAM */ la $7, _edata relocate: lw $8, ($5) # $8 = *EEPROM @@ -164,10 +164,10 @@ init: jal boot_card # call the program start function nop - # fall through to the "exit" routine - jal _sys_exit # call libc exit to run the G++ - # destructors - move a0,v0 # pass through the exit code + /* fall through to the "exit" routine */ + jal _sys_exit /* call libc exit to run the G++ */ + /* destructors */ + move a0,v0 /* pass through the exit code */ .end init /* @@ -186,7 +186,7 @@ _sys_exit: jal _mcleanup nop #endif - # break instruction can cope with 0xfffff, but GAS limits the range: + /* break instruction can cope with 0xfffff, but GAS limits the range: */ break 1023 nop b 7b # but loop back just in-case |