Skip to content

Commit

Permalink
Replace arm routines with stubs
Browse files Browse the repository at this point in the history
Signed-off-by: grant <[email protected]>
  • Loading branch information
grantseltzer committed Mar 8, 2019
1 parent b9747ec commit a628c74
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
14 changes: 7 additions & 7 deletions src/net/lookup_darwin_arm.s
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#include "go_tls.h"
#include "textflag.h"

// On darwin/arm, the runtime always use runtime/cgo
// for resolution. This will just exit with nominal
// exit code

TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0
MOVW 16(R0). R4 // arg 5 anslen
MOVW 12(R0), R3 // arg 4 answer
MOVW 4(R0), R1 // arg 2 class
MOVW 8(R0), R2 // arg 3 type
MOVW 0(R0), R0 // arg 1 name
BL libc_res_search
RET
MOVW $98, R0
BL libc_exit(SB)
RET
15 changes: 7 additions & 8 deletions src/net/lookup_darwin_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
#include "go_tls.h"
#include "textflag.h"

// On darwin/arm, the runtime always use runtime/cgo
// for resolution. This will just exit with nominal
// exit code

TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0
SUB $16, RSP
MOVW 24(R0), R4 // arg 5 anslen
MOVD 16(R0), R3 // arg 4 answer
MOVW 8(R0), R1 // arg 2 class
MOVD 12(R0), R2 // arg 3 type
MOVD 0(R0), R0 // arg 1 name
BL libc_res_search(SB)
RET
MOVW $1, R0
BL libc_exit(SB)
RET

0 comments on commit a628c74

Please sign in to comment.