std: Fix assembler comment syntax for sparc.

This commit is contained in:
Alex Rønne Petersen 2024-09-05 09:37:09 +02:00 committed by Andrew Kelley
parent c97db8e497
commit af04404b49
2 changed files with 6 additions and 6 deletions

View File

@ -1221,12 +1221,12 @@ const LinuxThreadImpl = struct {
\\ ba 1b
\\ restore
\\ 2:
\\ mov 73, %%g1 # SYS_munmap
\\ mov 73, %%g1 // SYS_munmap
\\ mov %[ptr], %%o0
\\ mov %[len], %%o1
\\ t 0x3 # ST_FLUSH_WINDOWS
\\ t 0x10
\\ mov 1, %%g1 # SYS_exit
\\ mov 1, %%g1 // SYS_exit
\\ mov 0, %%o0
\\ t 0x10
:
@ -1246,14 +1246,14 @@ const LinuxThreadImpl = struct {
\\ ba 1b
\\ restore
\\ 2:
\\ mov 73, %%g1 # SYS_munmap
\\ mov 73, %%g1 // SYS_munmap
\\ mov %[ptr], %%o0
\\ mov %[len], %%o1
\\ # Flush register window contents to prevent background
\\ # memory access before unmapping the stack.
\\ flushw
\\ t 0x6d
\\ mov 1, %%g1 # SYS_exit
\\ mov 1, %%g1 // SYS_exit
\\ mov 0, %%o0
\\ t 0x6d
:

View File

@ -190,7 +190,7 @@ pub fn clone() callconv(.Naked) usize {
\\ mov %%i0, %%g2
\\ mov %%i3, %%g3
\\ # Shuffle the arguments
\\ mov 217, %%g1 # SYS_clone
\\ mov 217, %%g1 // SYS_clone
\\ mov %%i2, %%o0
\\ # Add some extra space for the initial frame
\\ sub %%i1, 176 + 2047, %%o1
@ -214,7 +214,7 @@ pub fn clone() callconv(.Naked) usize {
\\ call %%g2
\\ mov %%g3, %%o0
\\ # Exit
\\ mov 1, %%g1 # SYS_exit
\\ mov 1, %%g1 // SYS_exit
\\ t 0x6d
\\2:
\\ # The syscall failed