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 {...@@ -1221,12 +1221,12 @@ const LinuxThreadImpl = struct {
1221 \\ ba 1b1221 \\ ba 1b
1222 \\ restore1222 \\ restore
1223 \\ 2:1223 \\ 2:
1224 \\ mov 73, %%g1 # SYS_munmap1224 \\ mov 73, %%g1 // SYS_munmap
1225 \\ mov %[ptr], %%o01225 \\ mov %[ptr], %%o0
1226 \\ mov %[len], %%o11226 \\ mov %[len], %%o1
1227 \\ t 0x3 # ST_FLUSH_WINDOWS1227 \\ t 0x3 # ST_FLUSH_WINDOWS
1228 \\ t 0x101228 \\ t 0x10
1229 \\ mov 1, %%g1 # SYS_exit1229 \\ mov 1, %%g1 // SYS_exit
1230 \\ mov 0, %%o01230 \\ mov 0, %%o0
1231 \\ t 0x101231 \\ t 0x10
1232 :1232 :
...@@ -1246,14 +1246,14 @@ const LinuxThreadImpl = struct {...@@ -1246,14 +1246,14 @@ const LinuxThreadImpl = struct {
1246 \\ ba 1b1246 \\ ba 1b
1247 \\ restore1247 \\ restore
1248 \\ 2:1248 \\ 2:
1249 \\ mov 73, %%g1 # SYS_munmap1249 \\ mov 73, %%g1 // SYS_munmap
1250 \\ mov %[ptr], %%o01250 \\ mov %[ptr], %%o0
1251 \\ mov %[len], %%o11251 \\ mov %[len], %%o1
1252 \\ # Flush register window contents to prevent background1252 \\ # Flush register window contents to prevent background
1253 \\ # memory access before unmapping the stack.1253 \\ # memory access before unmapping the stack.
1254 \\ flushw1254 \\ flushw
1255 \\ t 0x6d1255 \\ t 0x6d
1256 \\ mov 1, %%g1 # SYS_exit1256 \\ mov 1, %%g1 // SYS_exit
1257 \\ mov 0, %%o01257 \\ mov 0, %%o0
1258 \\ t 0x6d1258 \\ t 0x6d
1259 :1259 :
lib/std/os/linux/sparc64.zig+2-2
...@@ -190,7 +190,7 @@ pub fn clone() callconv(.Naked) usize {...@@ -190,7 +190,7 @@ pub fn clone() callconv(.Naked) usize {
190 \\ mov %%i0, %%g2190 \\ mov %%i0, %%g2
191 \\ mov %%i3, %%g3191 \\ mov %%i3, %%g3
192 \\ # Shuffle the arguments192 \\ # Shuffle the arguments
193 \\ mov 217, %%g1 # SYS_clone193 \\ mov 217, %%g1 // SYS_clone
194 \\ mov %%i2, %%o0194 \\ mov %%i2, %%o0
195 \\ # Add some extra space for the initial frame195 \\ # Add some extra space for the initial frame
196 \\ sub %%i1, 176 + 2047, %%o1196 \\ sub %%i1, 176 + 2047, %%o1
...@@ -214,7 +214,7 @@ pub fn clone() callconv(.Naked) usize {...@@ -214,7 +214,7 @@ pub fn clone() callconv(.Naked) usize {
214 \\ call %%g2214 \\ call %%g2
215 \\ mov %%g3, %%o0215 \\ mov %%g3, %%o0
216 \\ # Exit216 \\ # Exit
217 \\ mov 1, %%g1 # SYS_exit217 \\ mov 1, %%g1 // SYS_exit
218 \\ t 0x6d218 \\ t 0x6d
219 \\2:219 \\2:
220 \\ # The syscall failed220 \\ # The syscall failed