Skip to content

Commit 5e6142d

Browse files
committed
apply junction patch
1 parent 0a402d5 commit 5e6142d

File tree

5 files changed

+103
-82
lines changed

5 files changed

+103
-82
lines changed

src/cmd/vendor/golang.org/x/sys/unix/asm_junction_amd64.s

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/runtime/internal/syscall/asm_junction_amd64.s

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@
2828
TEXT ·Syscall6<ABIInternal>(SB),NOSPLIT,$0
2929
// a6 already in R9.
3030
// a5 already in R8.
31-
MOVQ SI, R10 // a4
31+
XCHGQ SI, CX
3232
MOVQ DI, DX // a3
33-
MOVQ CX, SI // a2
3433
MOVQ BX, DI // a1
3534
// num already in AX.
36-
SYSCALL
35+
PUSHQ AX
36+
CALL (0x200e18)
37+
POPQ SI
3738
CMPQ AX, $0xfffffffffffff001
3839
JLS ok
3940
NEGQ AX

0 commit comments

Comments
 (0)