Files
fail-targets/arch/riscv/bootcode/riscv32.c
Christian Dietrich a3fa6ea4ab towards multi-arch
2021-08-16 10:59:38 +02:00

13 lines
243 B
C

#include "boot.h"
asm (
".text" "\n"
".global _start" "\n"
"_start:" "\n"
" la sp, __sp" "\n"
" la t0, __stack_size" "\n"
" add sp, sp, t0" "\n"
" la t0, os_main" "\n"
" jr t0" "\n"
);