| author | |
| committer | |
| log | 39caa63800c161bc7e403f5636147b19ed48ef38 |
| tree | b17d826d05a6ad4fb904258885818e6c242625af |
| parent | bf66a7d6b7f17a1404f65e1c53ca08ef4442cec4 |
| signature |
Both LP64 and ILP32 calling conventions require the stack pointer to be aligned
to a 16-byte boundary on function entry.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/linux/riscv32.zig+1-1| ... | ... | @@ -118,7 +118,7 @@ pub fn clone() callconv(.naked) u32 { |
| 118 | 118 | asm volatile ( |
| 119 | 119 | \\ andi a1, a1, -16 |
| 120 | 120 | \\ # Save func and arg to stack |
| 121 | \\ addi a1, a1, -8 | |
| 121 | \\ addi a1, a1, -16 | |
| 122 | 122 | \\ sw a0, 0(a1) |
| 123 | 123 | \\ sw a3, 4(a1) |
| 124 | 124 | \\ |