aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Shaw <chickencha@gmail.com>2011-04-01 20:46:01 -0400
committerRuss Cox <rsc@golang.org>2011-04-01 20:46:01 -0400
commit46137557c48fa44d558de0e95c5c2f7d368e9190 (patch)
tree719cdc99ffef780cd65302e8132710204bec50f9
parenta78a25a16b5b56bdaa96ca7ce202bc1f20ab1bf1 (diff)
downloadgo-46137557c48fa44d558de0e95c5c2f7d368e9190.tar.gz
go-46137557c48fa44d558de0e95c5c2f7d368e9190.zip
syscall: make Syscall6 pass 6th arg on linux/386
R=rsc CC=golang-dev https://golang.org/cl/4350043
-rw-r--r--src/pkg/syscall/asm_linux_386.s3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/syscall/asm_linux_386.s b/src/pkg/syscall/asm_linux_386.s
index 52cd6e7419..404a8f3eda 100644
--- a/src/pkg/syscall/asm_linux_386.s
+++ b/src/pkg/syscall/asm_linux_386.s
@@ -34,7 +34,6 @@ ok:
RET
// func Syscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr);
-// Actually Syscall5 but the rest of the code expects it to be named Syscall6.
TEXT ·Syscall6(SB),7,$0
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
@@ -43,7 +42,7 @@ TEXT ·Syscall6(SB),7,$0
MOVL 16(SP), DX
MOVL 20(SP), SI
MOVL 24(SP), DI
- // 28(SP) is ignored
+ MOVL 28(SP), BP
INT $0x80
CMPL AX, $0xfffff001
JLS ok6