Skip to content

Commit

Permalink
runtime: don't use MOV ZR, Rn
Browse files Browse the repository at this point in the history
Update golang#104

This ends up encoding as MOV SP, Rn. Using the immediate form, MOV $0, Rn is an accetable substitute.
  • Loading branch information
davecheney authored and 4ad committed Feb 15, 2015
1 parent c3e2b25 commit 6ea2f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/sys_linux_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ TEXT runtime·sched_getaffinity(SB),NOSPLIT,$-8

// int32 runtime·epollcreate(int32 size);
TEXT runtime·epollcreate(SB),NOSPLIT,$-8
MOVW ZR, R0
MOVW $0, R0
MOV $SYS_epoll_create1, R8
SVC
MOVW R0, ret+8(FP)
Expand Down Expand Up @@ -388,7 +388,7 @@ TEXT runtime·epollwait(SB),NOSPLIT,$-8
MOV ev+8(FP), R1
MOVW nev+16(FP), R2
MOVW timeout+20(FP), R3
MOV ZR, R4
MOV $0, R4
MOV $SYS_epoll_pwait, R8
SVC
MOVW R0, ret+24(FP)
Expand Down

0 comments on commit 6ea2f82

Please sign in to comment.