summaryrefslogtreecommitdiff
path: root/src/syscall/asm_linux_386.s
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-14 22:27:03 -0400
committerRuss Cox <rsc@golang.org>2014-09-14 22:27:03 -0400
commit3e38d6e25d609b165405c2f13480f4f2501f8ca1 (patch)
tree4433aaab33f7510dd55c53881a572aa30b479c66 /src/syscall/asm_linux_386.s
parent210ef0c246a014bc413895dbd9aa536aae268fe4 (diff)
downloadgo-3e38d6e25d609b165405c2f13480f4f2501f8ca1.tar.gz
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 issue 8727. TBR=iant R=golang-codereviews CC=bradfitz, golang-codereviews, iant, khr, r https://codereview.appspot.com/143930043
Diffstat (limited to 'src/syscall/asm_linux_386.s')
-rw-r--r--src/syscall/asm_linux_386.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syscall/asm_linux_386.s b/src/syscall/asm_linux_386.s
index bcb85add6..2ce51822d 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