Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: fix misleading comments in amd64 assembly #54711

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/runtime/sys_darwin_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ TEXT runtime·pthread_cond_signal_trampoline(SB),NOSPLIT,$0
TEXT runtime·pthread_self_trampoline(SB),NOSPLIT,$0
PUSHQ BP
MOVQ SP, BP
MOVQ DI, BX // BX is caller-save
MOVQ DI, BX // BX is callee-saved
CALL libc_pthread_self(SB)
MOVQ AX, 0(BX) // return value
POPQ BP
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/sys_openbsd_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ TEXT runtime·exit_trampoline(SB),NOSPLIT,$0
TEXT runtime·getthrid_trampoline(SB),NOSPLIT,$0
PUSHQ BP
MOVQ SP, BP
MOVQ DI, BX // BX is caller-save
MOVQ DI, BX // BX is callee-saved
CALL libc_getthrid(SB)
MOVL AX, 0(BX) // return value
POPQ BP
Expand Down