]> Cypherpunks repositories - gostls13.git/commit
syscall, runtime/internal/syscall: always zero the higher bits of return value on...
authorGuoqi Chen <chenguoqi@loongson.cn>
Fri, 10 Jun 2022 11:08:14 +0000 (19:08 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 15 Jun 2022 20:49:30 +0000 (20:49 +0000)
commit97bfc77f3897d6268cf4f9bb6756b97ff5e7cc03
tree6ccaf67926bb9c992e874cd4f7688f3e0c1285f3
parent937fa5000a7bb07ed62d35a1aea9ea0819659084
syscall, runtime/internal/syscall: always zero the higher bits of return value on linux/loong64

All loong64 syscalls return values only via R4/A0, and R5/A1 may contain unrelated
content. Always zero the second return value.

Change-Id: I62af59369bece5bd8028b937c74f4694150f7a55
Reviewed-on: https://go-review.googlesource.com/c/go/+/411615
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/internal/syscall/asm_linux_loong64.s
src/syscall/asm_linux_loong64.s