Makefile: interface flags fixed

This commit is contained in:
xinyangli 2024-12-12 12:10:16 +08:00
parent 989ee41ac7
commit fe34be982d
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
6 changed files with 27 additions and 10 deletions

View file

@ -22,6 +22,7 @@ void halt(int code) {
while (1);
}
void _trm_init() {
heap_alloc_ptr = heap.start;
int ret = main(mainargs);

View file

@ -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