- libsys fixed startup code

git-svn-id: http://moon:8086/svn/mips@110 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-01-20 19:28:46 +00:00
parent 6b228be3f7
commit ae41d3dc9e
+2 -14
View File
@@ -6,22 +6,14 @@ argv0: .asciz "\"This-MIPS-program\""
argv: .word argv0
.text
.section .start, "ax"
.extern _init
.section .init, "ax"
.extern board_init
.extern _exc_vect_start
.extern _xcpt_handler
.align 2
.globl _start
_start:
.set noreorder
j init
nop
.set reorder
.text
.set noreorder
init:
# Set stack pointer
la $sp, stack_ptr
# Set global pointer
@@ -46,11 +38,7 @@ $install: lw $v0, 0($t1)
bne $t1, $t2, $install
addiu $t0, 4
# Call _init
la $k0, _init
jalr $k0
nop
_init:
# Call board_init
la $k0, board_init
jalr $k0