Skip to content

Commit af04404

Browse files
alexrpandrewrk
authored andcommitted
std: Fix assembler comment syntax for sparc.
1 parent c97db8e commit af04404

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/std/Thread.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)