authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 02:00:46+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 17:53:03+02:00
log2fc37914da3ff32536394c58478a45844544beeb
tree3ecea3a8c1390f74c517445d3ba57520359e552d
parent14f9ea5a0f1303f4ba6caed56d990c8981eb9657
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux.sparc: delete incorrect stack bias in clone assembly

32-bit doesn't have a stack bias; this was a copy/paste goof when I implemented the 32-bit clone code based on the 64-bit code.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/os/linux/sparc.zig+2-2
......@@ -214,11 +214,11 @@ pub fn clone() callconv(.naked) u32 {
214214 \\
215215 \\ # Align, and add some extra space for the initial frame
216216 \\ and %%i1, -8, %%i1
217 \\ sub %%i1, 96 + 2047, %%o1
217 \\ sub %%i1, 96, %%o1
218218 \\
219219 \\ mov %%i4, %%o2
220220 \\ mov %%i5, %%o3
221 \\ ld [%%fp + 92 + 2047], %%o4
221 \\ ld [%%fp + 92], %%o4
222222 \\ t 0x10
223223 \\ bcs 1f
224224 \\ nop