]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: add linux/mips64x cgo support
authorCherry Zhang <lunaria21@gmail.com>
Thu, 28 Apr 2016 02:18:20 +0000 (22:18 -0400)
committerMinux Ma <minux@golang.org>
Sun, 1 May 2016 02:39:50 +0000 (02:39 +0000)
commit5d002dbc2179c99beb47490d316c53f687c9565a
treeb8b46cfd5b31fb9c80b54eb63e93748c03088fab
parent073d292c453f85f6c50f063ba0a4d0d1b328dadc
runtime/cgo: add linux/mips64x cgo support

MIPS N64 ABI passes arguments in registers R4-R11, return value in R2.
R16-R23, R28, R30 and F24-F31 are callee-save. gcc PIC code expects
to be called with indirect call through R25.

Change-Id: I24f582b4b58e1891ba9fd606509990f95cca8051
Reviewed-on: https://go-review.googlesource.com/19805
Reviewed-by: Minux Ma <minux@golang.org>
src/runtime/cgo/asm_mips64x.s [new file with mode: 0644]
src/runtime/cgo/gcc_linux_mips64x.c [new file with mode: 0644]
src/runtime/cgo/gcc_mips64x.S [new file with mode: 0644]