diff options
| author | David Rubin <daviru007@icloud.com> | 2024-03-13 19:26:10 -0700 |
|---|---|---|
| committer | David Rubin <daviru007@icloud.com> | 2024-05-11 02:17:11 -0700 |
| commit | 060c475fcd358eb9d05d14ec9f1bb7bfc47e4423 (patch) | |
| tree | c203f555ba0eba4d7edffd3a9ce6cc121fc900df /lib | |
| parent | 5e770407cf50ae8cd103644c8ca297da52adb5b8 (diff) | |
| download | zig-060c475fcd358eb9d05d14ec9f1bb7bfc47e4423.tar.gz zig-060c475fcd358eb9d05d14ec9f1bb7bfc47e4423.zip | |
riscv: update `start.zig` and restore ra from the proper stack offset
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/start.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index 24674614e2..68ad3f67ac 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -155,7 +155,7 @@ fn exit2(code: usize) noreturn { asm volatile ("ecall" : : [number] "{a7}" (94), - [arg1] "{a0}" (0), + [arg1] "{a0}" (code), : "rcx", "r11", "memory" ); }, |
