On 19.06.2023 15:34, Oleksii Kurochko wrote: > --- a/xen/arch/riscv/riscv64/head.S > +++ b/xen/arch/riscv/riscv64/head.S > @@ -29,6 +29,8 @@ ENTRY(start) > > jal reset_stack > > + jal calc_phys_offset > + > tail start_xen > > .section .text, "ax", %progbits
Since you call a C function, the code to save/restore a0/a1 needs to move here (from patch 4). Jan