diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-14 22:27:03 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-14 22:27:03 -0400 |
| commit | 3b4bccc82061fd1f9c70a1b6e85efbdd2ded51a2 (patch) | |
| tree | b09e1eda2091e2e71927b28642e84b53dbb350e7 /src/syscall/asm_linux_386.s | |
| parent | e8a74dcad96b134ba29a7edbc3bc84ba597e7c64 (diff) | |
| download | go-3b4bccc82061fd1f9c70a1b6e85efbdd2ded51a2.tar.xz | |
syscall: add GO_ARGS to Go-called assembly
Fixes sporadic linux/386 build failure (untyped args)
and probably some others we haven't observed yet.
Fixes #8727.
TBR=iant
R=golang-codereviews
CC=bradfitz, golang-codereviews, iant, khr, r
https://golang.org/cl/143930043
Diffstat (limited to 'src/syscall/asm_linux_386.s')
| -rw-r--r-- | src/syscall/asm_linux_386.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syscall/asm_linux_386.s b/src/syscall/asm_linux_386.s index bcb85add64..2ce51822da 100644 --- a/src/syscall/asm_linux_386.s +++ b/src/syscall/asm_linux_386.s @@ -119,6 +119,7 @@ ok2: // func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, errno int) // Kernel interface gets call sub-number and pointer to a0. TEXT ·socketcall(SB),NOSPLIT,$0-36 + GO_ARGS CALL runtime·entersyscall(SB) MOVL $SYS_SOCKETCALL, AX // syscall entry MOVL 4(SP), BX // socket call number @@ -143,6 +144,7 @@ oksock: // func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, errno int) // Kernel interface gets call sub-number and pointer to a0. TEXT ·rawsocketcall(SB),NOSPLIT,$0-36 + GO_ARGS MOVL $SYS_SOCKETCALL, AX // syscall entry MOVL 4(SP), BX // socket call number LEAL 8(SP), CX // pointer to call arguments @@ -168,6 +170,7 @@ oksock1: // Underlying system call is // llseek(int fd, int offhi, int offlo, int64 *result, int whence) TEXT ·seek(SB),NOSPLIT,$0-28 + GO_ARGS CALL runtime·entersyscall(SB) MOVL $SYS__LLSEEK, AX // syscall entry MOVL 4(SP), BX // fd |
