authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-09-05 09:37:09+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-09-07 13:16:22-07:00
logaf04404b49d78f2ba7c3b6ba8c082b4fbeec7859
treea65ece7404be309fc6ce78137c2f925fc8e0992c
parentc97db8e4974b912c7ae97df878d04d2d71480b9a

std: Fix assembler comment syntax for sparc.


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

lib/std/Thread.zig+4-4
......@@ -1221,12 +1221,12 @@ const LinuxThreadImpl = struct {
12211221 \\ ba 1b
12221222 \\ restore
12231223 \\ 2:
1224 \\ mov 73, %%g1 # SYS_munmap
1224 \\ mov 73, %%g1 // SYS_munmap
12251225 \\ mov %[ptr], %%o0
12261226 \\ mov %[len], %%o1
12271227 \\ t 0x3 # ST_FLUSH_WINDOWS
12281228 \\ t 0x10
1229 \\ mov 1, %%g1 # SYS_exit
1229 \\ mov 1, %%g1 // SYS_exit
12301230 \\ mov 0, %%o0
12311231 \\ t 0x10
12321232 :
......@@ -1246,14 +1246,14 @@ const LinuxThreadImpl = struct {
12461246 \\ ba 1b
12471247 \\ restore
12481248 \\ 2:
1249 \\ mov 73, %%g1 # SYS_munmap
1249 \\ mov 73, %%g1 // SYS_munmap
12501250 \\ mov %[ptr], %%o0
12511251 \\ mov %[len], %%o1
12521252 \\ # Flush register window contents to prevent background
12531253 \\ # memory access before unmapping the stack.
12541254 \\ flushw
12551255 \\ t 0x6d
1256 \\ mov 1, %%g1 # SYS_exit
1256 \\ mov 1, %%g1 // SYS_exit
12571257 \\ mov 0, %%o0
12581258 \\ t 0x6d
12591259 :
lib/std/os/linux/sparc64.zig+2-2
......@@ -190,7 +190,7 @@ pub fn clone() callconv(.Naked) usize {
190190 \\ mov %%i0, %%g2
191191 \\ mov %%i3, %%g3
192192 \\ # Shuffle the arguments
193 \\ mov 217, %%g1 # SYS_clone
193 \\ mov 217, %%g1 // SYS_clone
194194 \\ mov %%i2, %%o0
195195 \\ # Add some extra space for the initial frame
196196 \\ sub %%i1, 176 + 2047, %%o1
......@@ -214,7 +214,7 @@ pub fn clone() callconv(.Naked) usize {
214214 \\ call %%g2
215215 \\ mov %%g3, %%o0
216216 \\ # Exit
217 \\ mov 1, %%g1 # SYS_exit
217 \\ mov 1, %%g1 // SYS_exit
218218 \\ t 0x6d
219219 \\2:
220220 \\ # The syscall failed