summaryrefslogtreecommitdiff
path: root/src/syscall/asm_plan9_386.s
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-12 00:23:03 -0400
committerRuss Cox <rsc@golang.org>2014-09-12 00:23:03 -0400
commit9ea7b4e606b033d7c12c67fa2508f74aca2a8118 (patch)
tree9cb1117a680c35620ee11e003c070449beb086bc /src/syscall/asm_plan9_386.s
parent01cc50951b57fd695075fa8a7e53025cf6115da0 (diff)
downloadgo-9ea7b4e606b033d7c12c67fa2508f74aca2a8118.tar.gz
syscall: make func Syscall use pointer maps from Go prototypes
Before, Syscall and friends were having their arguments treated conservatively. Now they will use the Go prototype, which will mean the arguments are not considered pointers at all. This is safe because of CL 139360044. The fact that all these non-Solaris systems were using conservative scanning of the Syscall arguments is why the failure that prompted CL 139360044 was only observed on Solaris, which does something completely different. If we'd done this earlier, we'd have seen the Solaris failure in more places. LGTM=khr R=khr CC=golang-codereviews https://codereview.appspot.com/144730043
Diffstat (limited to 'src/syscall/asm_plan9_386.s')
-rw-r--r--src/syscall/asm_plan9_386.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/syscall/asm_plan9_386.s b/src/syscall/asm_plan9_386.s
index aaa8b9a69..30726b4d0 100644
--- a/src/syscall/asm_plan9_386.s
+++ b/src/syscall/asm_plan9_386.s
@@ -18,6 +18,7 @@
// Trap # in AX, args on stack above caller pc.
TEXT ·Syscall(SB),NOSPLIT,$0-32
+ GO_ARGS
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -53,6 +54,7 @@ copyresult3:
RET
TEXT ·Syscall6(SB),NOSPLIT,$0-44
+ GO_ARGS
CALL runtime·entersyscall(SB)
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
@@ -91,6 +93,7 @@ copyresult4:
RET
TEXT ·RawSyscall(SB),NOSPLIT,$0-28
+ GO_ARGS
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI
@@ -106,6 +109,7 @@ TEXT ·RawSyscall(SB),NOSPLIT,$0-28
RET
TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
+ GO_ARGS
MOVL 4(SP), AX // syscall entry
// slide args down on top of system call number
LEAL 8(SP), SI