aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Shaw <chickencha@gmail.com>2011-04-01 22:26:57 -0400
committerRuss Cox <rsc@golang.org>2011-04-01 22:26:57 -0400
commit7b40095e8c2ab6ae08589fa53f4328231139fdd3 (patch)
treea97ddbf90c690dbe16f05ef7200db3d60e081897
parent6865cc0e8e6964b9313c8966b45a40caea1ac870 (diff)
downloadgo-7b40095e8c2ab6ae08589fa53f4328231139fdd3.tar.gz
go-7b40095e8c2ab6ae08589fa53f4328231139fdd3.zip
syscall: make Rawsyscall6 pass 6th arg on linux/386
Forgot this one in the previous CL R=rsc, r CC=golang-dev https://golang.org/cl/4345043
-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 404a8f3eda..82f170b5bb 100644
--- a/src/pkg/syscall/asm_linux_386.s
+++ b/src/pkg/syscall/asm_linux_386.s
@@ -82,7 +82,6 @@ ok1:
RET
// func RawSyscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr);
-// Actually RawSyscall5 but the rest of the code expects it to be named RawSyscall6.
TEXT ·RawSyscall6(SB),7,$0
MOVL 4(SP), AX // syscall entry
MOVL 8(SP), BX
@@ -90,7 +89,7 @@ TEXT ·RawSyscall6(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 ok2