Skip to content

Commit

Permalink
runtime, go/build: re-enable cgo on FreeBSD.
Browse files Browse the repository at this point in the history
Fixes #7331.

LGTM=dave, iant
R=golang-codereviews, dave, gobot, iant
CC=golang-codereviews
https://golang.org/cl/89150043
  • Loading branch information
minux committed Apr 21, 2014
1 parent d31d197 commit 1bb4f37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/pkg/go/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ var cgoEnabled = map[string]bool{
"dragonfly/amd64": true,
"freebsd/386": true,
"freebsd/amd64": true,
"freebsd/arm": true,
"linux/386": true,
"linux/amd64": true,
"linux/arm": true,
Expand Down
5 changes: 3 additions & 2 deletions src/pkg/runtime/sys_freebsd_arm.s
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ TEXT runtime·casp(SB),NOSPLIT,$0
TEXT runtime·cas(SB),NOSPLIT,$0
B runtime·armcas(SB)

// TODO(minux): this only supports ARMv6K+.
TEXT runtime·read_tls_fallback(SB),NOSPLIT,$-4
MOVW $0xffff1000, R0
MOVW (R0), R0
WORD $0xee1d0f70 // mrc p15, 0, r0, c13, c0, 3
RET

0 comments on commit 1bb4f37

Please sign in to comment.