]> Cypherpunks repositories - gostls13.git/commit
runtime: fix nacl/386 build
authorRuss Cox <rsc@golang.org>
Thu, 28 Aug 2014 03:41:43 +0000 (23:41 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 28 Aug 2014 03:41:43 +0000 (23:41 -0400)
commitadd7b220105ab2734244400aa0585fc80f40001c
tree263f4f114ad689cec47d0457b731ba3c53214bb8
parent948bb9150e962ee77475d2abc6585ecc7ac7f755
runtime: fix nacl/386 build

I changed all the NACL_SYSJMP to NACL_SYSCALL in
an earlier CL, but I missed the fact that NACL_SYSCALL
will push another return PC on the stack, so that the
arguments will no longer be in the right place.
Since we have to make our own call, we also have to
copy the arguments. Do that.

Fixes nacl/386 build.

TBR=minux
CC=golang-codereviews
https://golang.org/cl/135050044
src/pkg/runtime/sys_nacl_386.s