Commit 48c0d8b6 authored by Elias Naur's avatar Elias Naur Committed by Russ Cox

runtime: Fix netbsd/arm and freebsd/arm build

        The ARM external linking CL left missed changes to sys_freebsd_arm.s and sys_netbsd_arm.s already done to sys_linux_arm.s.

R=rsc
CC=golang-dev
https://golang.org/cl/12842044
parent 308a3e6c
......@@ -152,11 +152,11 @@ TEXT runtime·sigaction(SB),NOSPLIT,$-8
TEXT runtime·sigtramp(SB),NOSPLIT,$24
// this might be called in external code context,
// where g and m are not set.
// first save R0, because _cgo_load_gm will clobber it
// first save R0, because runtime·load_gm will clobber it
MOVW R0, 4(R13) // signum
MOVW _cgo_load_gm(SB), R0
MOVB runtime·iscgo(SB), R0
CMP $0, R0
BL.NE (R0)
BL.NE runtime·load_gm(SB)
CMP $0, m
BNE 4(PC)
......
......@@ -201,11 +201,11 @@ TEXT runtime·sigaction(SB),NOSPLIT,$4
TEXT runtime·sigtramp(SB),NOSPLIT,$24
// this might be called in external code context,
// where g and m are not set.
// first save R0, because _cgo_load_gm will clobber it
// first save R0, because runtime·load_gm will clobber it
MOVW R0, 4(R13) // signum
MOVW _cgo_load_gm(SB), R0
MOVB runtime·iscgo(SB), R0
CMP $0, R0
BL.NE (R0)
BL.NE runtime·load_gm(SB)
CMP $0, m
BNE 4(PC)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment