Commit 064ce85c authored by Russ Cox's avatar Russ Cox

runtime: fix non-tab indentation in lookup_darwin_*.s

Change-Id: Ie00494f098bd2bce9bfd1b18dbf9543cf46faad6
Reviewed-on: https://go-review.googlesource.com/c/go/+/180840
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 26a5f6a3
...@@ -7,44 +7,44 @@ ...@@ -7,44 +7,44 @@
#include "textflag.h" #include "textflag.h"
TEXT runtime·res_init_trampoline(SB),NOSPLIT,$0 TEXT runtime·res_init_trampoline(SB),NOSPLIT,$0
PUSHL BP PUSHL BP
MOVL SP, BP MOVL SP, BP
SUBL $8, SP SUBL $8, SP
CALL libc_res_init(SB) CALL libc_res_init(SB)
CMPL AX, $-1 CMPL AX, $-1
JNE ok JNE ok
CALL libc_error(SB) CALL libc_error(SB)
ok: ok:
MOVL BP, SP MOVL BP, SP
POPL BP POPL BP
RET RET
TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0 TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0
PUSHL BP PUSHL BP
MOVL SP, BP MOVL SP, BP
SUBL $24, SP SUBL $24, SP
MOVL 32(SP), CX MOVL 32(SP), CX
MOVL 16(CX), AX // arg 5 anslen MOVL 16(CX), AX // arg 5 anslen
MOVL AX, 16(SP) MOVL AX, 16(SP)
MOVL 12(CX), AX // arg 4 answer MOVL 12(CX), AX // arg 4 answer
MOVL AX, 12(SP) MOVL AX, 12(SP)
MOVL 8(CX), AX // arg 3 type MOVL 8(CX), AX // arg 3 type
MOVL AX, 8(SP) MOVL AX, 8(SP)
MOVL 4(CX), AX // arg 2 class MOVL 4(CX), AX // arg 2 class
MOVL AX, 4(SP) MOVL AX, 4(SP)
MOVL 0(CX), AX // arg 1 name MOVL 0(CX), AX // arg 1 name
MOVL AX, 0(SP) MOVL AX, 0(SP)
CALL libc_res_search(SB) CALL libc_res_search(SB)
XORL DX, DX XORL DX, DX
CMPL AX, $-1 CMPL AX, $-1
JNE ok JNE ok
CALL libc_error(SB) CALL libc_error(SB)
MOVL (AX), DX MOVL (AX), DX
XORL AX, AX XORL AX, AX
ok: ok:
MOVL 32(SP), CX MOVL 32(SP), CX
MOVL AX, 20(CX) MOVL AX, 20(CX)
MOVL DX, 24(CX) MOVL DX, 24(CX)
MOVL BP, SP MOVL BP, SP
POPL BP POPL BP
RET RET
...@@ -7,34 +7,34 @@ ...@@ -7,34 +7,34 @@
#include "textflag.h" #include "textflag.h"
TEXT runtime·res_init_trampoline(SB),NOSPLIT,$0 TEXT runtime·res_init_trampoline(SB),NOSPLIT,$0
PUSHQ BP PUSHQ BP
MOVQ SP, BP MOVQ SP, BP
CALL libc_res_init(SB) CALL libc_res_init(SB)
CMPQ AX, $-1 CMPQ AX, $-1
JNE ok JNE ok
CALL libc_error(SB) CALL libc_error(SB)
ok: ok:
POPQ BP POPQ BP
RET RET
TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0 TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0
PUSHQ BP PUSHQ BP
MOVQ SP, BP MOVQ SP, BP
MOVQ DI, BX // move DI into BX to preserve struct addr MOVQ DI, BX // move DI into BX to preserve struct addr
MOVL 24(BX), R8 // arg 5 anslen MOVL 24(BX), R8 // arg 5 anslen
MOVQ 16(BX), CX // arg 4 answer MOVQ 16(BX), CX // arg 4 answer
MOVL 12(BX), DX // arg 3 type MOVL 12(BX), DX // arg 3 type
MOVL 8(BX), SI // arg 2 class MOVL 8(BX), SI // arg 2 class
MOVQ 0(BX), DI // arg 1 name MOVQ 0(BX), DI // arg 1 name
CALL libc_res_search(SB) CALL libc_res_search(SB)
XORL DX, DX XORL DX, DX
CMPQ AX, $-1 CMPQ AX, $-1
JNE ok JNE ok
CALL libc_error(SB) CALL libc_error(SB)
MOVLQSX (AX), DX // move return from libc_error into DX MOVLQSX (AX), DX // move return from libc_error into DX
XORL AX, AX // size on error is 0 XORL AX, AX // size on error is 0
ok: ok:
MOVL AX, 28(BX) // size MOVL AX, 28(BX) // size
MOVL DX, 32(BX) // error code MOVL DX, 32(BX) // error code
POPQ BP POPQ BP
RET RET
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
// exit code. // exit code.
TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0 TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0
MOVW $90, R0 MOVW $90, R0
BL libc_exit(SB) BL libc_exit(SB)
RET RET
TEXT runtime·res_init_trampoline(SB),NOSPLIT,$0 TEXT runtime·res_init_trampoline(SB),NOSPLIT,$0
MOVW $91, R0 MOVW $91, R0
BL libc_exit(SB) BL libc_exit(SB)
RET RET
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
// exit code. // exit code.
TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0 TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0
MOVW $90, R0 MOVW $90, R0
BL libc_exit(SB) BL libc_exit(SB)
RET RET
TEXT runtime·res_init_trampoline(SB),NOSPLIT,$0 TEXT runtime·res_init_trampoline(SB),NOSPLIT,$0
MOVW $91, R0 MOVW $91, R0
BL libc_exit(SB) BL libc_exit(SB)
RET RET
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment