Skip to content

Commit

Permalink
runtime: use 64-bit move when addressing globals
Browse files Browse the repository at this point in the history
  • Loading branch information
4ad committed Jan 29, 2015
1 parent 39b74b5 commit 547c1b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/runtime/asm_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ TEXT runtime·rt0_go(SB),NOSPLIT,$0

// if there is a _cgo_init, call it using the gcc ABI.
MOV _cgo_init(SB), R12
CMP R0, R12
CMP $0, R12
BEQ nocgo

BL runtime·abort(SB)
Expand Down
10 changes: 5 additions & 5 deletions src/runtime/rt0_linux_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

TEXT _rt0_arm64_linux(SB),NOSPLIT,$0-0
// reference the dummy symbols so that they end up in the binary.
MOVW $dummydata(SB), R11
MOVW $dummyrodata(SB), R11
MOVW $dummynoptrdata(SB), R11
MOVW $dummybss(SB), R11
MOVW $dummynoptrbss(SB), R11
MOV $dummydata(SB), R11
MOV $dummyrodata(SB), R11
MOV $dummynoptrdata(SB), R11
MOV $dummybss(SB), R11
MOV $dummynoptrbss(SB), R11
MOV 0(SP), R0 // argc
MOV $8(SP), R1 // argv
BL main(SB)
Expand Down

0 comments on commit 547c1b1

Please sign in to comment.