1
0
mirror of https://github.com/golang/go synced 2024-11-23 02:10:03 -07:00

runtime/cgo: fix crosscall2 on arm

This time for sure.

R=golang-dev
CC=golang-dev
https://golang.org/cl/7449045
This commit is contained in:
Russ Cox 2013-03-01 05:02:41 -08:00
parent 779c45a507
commit 776b51850b

View File

@ -16,7 +16,8 @@ TEXT crosscall2(SB),7,$-4
* nevertheless.
*/
MOVM.WP [R0, R1, R2, R4, R5, R6, R7, R8, R9, R10, R11, R12, R14], (R13)
BL x_cgo_load_gm(SB)
MOVW _cgo_load_gm(SB), R0
BL (R0)
MOVW PC, R14
MOVW -4(R13), PC
MOVM.IAW (R13), [R0, R1, R2, R4, R5, R6, R7, R8, R9, R10, R11, R12, PC]