| author | |
| committer | |
| log | 060c475fcd358eb9d05d14ec9f1bb7bfc47e4423 |
| tree | c203f555ba0eba4d7edffd3a9ce6cc121fc900df |
| parent | 5e770407cf50ae8cd103644c8ca297da52adb5b8 |
2 files changed, 2 insertions(+), 2 deletions(-)
lib/std/start.zig+1-1| ... | ... | @@ -155,7 +155,7 @@ fn exit2(code: usize) noreturn { |
| 155 | 155 | asm volatile ("ecall" |
| 156 | 156 | : |
| 157 | 157 | : [number] "{a7}" (94), |
| 158 | [arg1] "{a0}" (0), | |
| 158 | [arg1] "{a0}" (code), | |
| 159 | 159 | : "rcx", "r11", "memory" |
| 160 | 160 | ); |
| 161 | 161 | }, |
src/arch/riscv64/Emit.zig+1-1| ... | ... | @@ -287,7 +287,7 @@ fn mirPsuedo(emit: *Emit, inst: Mir.Inst.Index) !void { |
| 287 | 287 | }; |
| 288 | 288 | |
| 289 | 289 | // Restore ra |
| 290 | try emit.writeInstruction(Instruction.ld(.ra, stack_size - 16, .sp)); | |
| 290 | try emit.writeInstruction(Instruction.ld(.ra, stack_size - 8, .sp)); | |
| 291 | 291 | |
| 292 | 292 | // Restore s0 |
| 293 | 293 | try emit.writeInstruction(Instruction.ld(.s0, stack_size - 16, .sp)); |