Forked from
Muzi / OSKernel2023-NutOS
414 commits behind the upstream repository.
.section ".entry_function", "ax"
.globl _start
_start:
// clear bss
la t0, _bss_start
la t1, _bss_end
bgeu t0, t1, bss_clear_done
bss_clear_loop:
sw zero, 0(t0)
addi t0, t0, 4
bltu t0, t1, bss_clear_loop
bss_clear_done:
// jump to main
call main
end:
call exit
j end
.size _start, . - _start