Hi I was trying to run a function called main in machine mode in riscv. But I couldn’t figure out how to correctly use ecall. Does anyone know how I can modify this bootloader so it calls main into machine mode?
.globl _start
.extern main
.section .sm, "ax"
_start:
la sp, _stack_top
jal ra,main
j end
end: j end
Thanks in advance.