Skip to content

Commit

Permalink
cmd/7g: fix linux/arm64 build
Browse files Browse the repository at this point in the history
REGRT1 and REGRT2 are also reserved on arm64 for runtime (duffzero
and duffcopy).

Change-Id: If098527a7f29d16f94bdcec05fd55950b9076e35
Signed-off-by: Shenghou Ma <[email protected]>
Reviewed-on: https://go-review.googlesource.com/7977
Reviewed-by: Aram Hăvărneanu <[email protected]>
Reviewed-by: Dave Cheney <[email protected]>
Reviewed-by: Rob Pike <[email protected]>
  • Loading branch information
minux committed Mar 24, 2015
1 parent 7a88c64 commit 75447d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmd/7g/gsubr.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ var unmappedzero int64 = 4096
var resvd = []int{
arm64.REGTMP,
arm64.REGG,
arm64.REGRT1,
arm64.REGRT2,
arm64.REG_R31, // REGZERO and REGSP
arm64.FREGZERO,
arm64.FREGHALF,
Expand Down

0 comments on commit 75447d0

Please sign in to comment.