diff --git a/arch/riscv64/_start.S b/arch/riscv64/_start.S index 41a981a2..3e2b6c4f 100644 --- a/arch/riscv64/_start.S +++ b/arch/riscv64/_start.S @@ -25,7 +25,10 @@ _start: .option norelax la gp, __global_pointer$ .option pop - + ld ra, (sp) + ld a0, 8(sp) + ld a1, 16(sp) + ld a2, 24(sp) + addi sp, sp, 32 j _startc - .size _start, .-_start