Commit 1fd14082 authored by Keith Randall's avatar Keith Randall Committed by Keith Randall

runtime: fix data sizes for res_search results

The return values are 32 bit, not 64 bit.

I don't think this would be the cause of any problems, but
it can't hurt to fix it.

Change-Id: Icdd50606360ab9d74070271f9d1721d5fe640bc7
Reviewed-on: https://go-review.googlesource.com/c/go/+/174518
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent f686a289
...@@ -34,7 +34,7 @@ TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0 ...@@ -34,7 +34,7 @@ TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0
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:
MOVQ AX, 28(BX) // size MOVL AX, 28(BX) // size
MOVQ DX, 32(BX) // error code MOVL DX, 32(BX) // error code
POPQ BP POPQ BP
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