]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: fix callback on big-endian MIPS64
authorCherry Zhang <cherryyz@google.com>
Thu, 8 Sep 2016 12:33:19 +0000 (08:33 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 9 Sep 2016 00:30:28 +0000 (00:30 +0000)
commit14ff7cc94c4e167dbd80c96996b43f96bb9c17fb
tree00fd7f2ea5c42ffa86c76f7fc964bfc034ff341f
parent2a36f78e8795c939630e494319c5790bc519ba72
runtime/cgo: fix callback on big-endian MIPS64

Use MOVW, instead of MOVV, to pass an int32 arg. Also no need to
restore arg registers.

Fix big-endian MIPS64 build.

Change-Id: Ib43c71075c988153e5e5c5c6e7297b3fee28652a
Reviewed-on: https://go-review.googlesource.com/28830
Reviewed-by: Minux Ma <minux@golang.org>
src/runtime/cgo/asm_mips64x.s