Makefile: interface flags fixed
This commit is contained in:
parent
989ee41ac7
commit
fe34be982d
6 changed files with 27 additions and 10 deletions
|
@ -22,6 +22,7 @@ void halt(int code) {
|
|||
while (1);
|
||||
}
|
||||
|
||||
|
||||
void _trm_init() {
|
||||
heap_alloc_ptr = heap.start;
|
||||
int ret = main(mainargs);
|
||||
|
|
|
@ -5,4 +5,7 @@
|
|||
_start:
|
||||
mv s0, zero
|
||||
la sp, _stack_pointer
|
||||
jal _trm_init
|
||||
|
||||
lui t0, %hi(_trm_init) # Load upper 20 bits
|
||||
addi t0, t0, %lo(_trm_init) # Add lower 12 bits
|
||||
jalr ra, t0, 0 # Jump and link register
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue