mirror of
https://github.com/golang/go
synced 2024-11-17 19:15:21 -07:00
runtime: fix asan asm on amd64
On amd64, the 8-byte move instruction is MOVQ, not MOVD. Change-Id: I48d9b6f5f9f6c7f2e3fe20fd017b816cfb3983a8 Reviewed-on: https://go-review.googlesource.com/c/go/+/517635 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
e6637f3293
commit
d9f7e1dc73
@ -63,10 +63,10 @@ TEXT runtime·asanpoison(SB), NOSPLIT, $0-16
|
|||||||
|
|
||||||
// func runtime·asanregisterglobals(addr unsafe.Pointer, n uintptr)
|
// func runtime·asanregisterglobals(addr unsafe.Pointer, n uintptr)
|
||||||
TEXT runtime·asanregisterglobals(SB), NOSPLIT, $0-16
|
TEXT runtime·asanregisterglobals(SB), NOSPLIT, $0-16
|
||||||
MOVD addr+0(FP), RARG0
|
MOVQ addr+0(FP), RARG0
|
||||||
MOVD size+8(FP), RARG1
|
MOVQ size+8(FP), RARG1
|
||||||
// void __asan_register_globals_go(void *addr, uintptr_t n);
|
// void __asan_register_globals_go(void *addr, uintptr_t n);
|
||||||
MOVD $__asan_register_globals_go(SB), AX
|
MOVQ $__asan_register_globals_go(SB), AX
|
||||||
JMP asancall<>(SB)
|
JMP asancall<>(SB)
|
||||||
|
|
||||||
// Switches SP to g0 stack and calls (AX). Arguments already set.
|
// Switches SP to g0 stack and calls (AX). Arguments already set.
|
||||||
|
Loading…
Reference in New Issue
Block a user