aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>2025-04-17 20:21:29 +0800
committerabner chenc <chenguoqi@loongson.cn>2025-04-22 18:37:58 -0700
commit93e4e26d5b909c3dbeeb638534461155f06ecf5c (patch)
tree2f1ab840c558c09b3d9937a53006597fe574de9a /src/runtime
parent489917fc400ee25d34dfb06306da3b3cef126963 (diff)
downloadgo-93e4e26d5b909c3dbeeb638534461155f06ecf5c.tar.xz
runtime: fix typos in comments
Change-Id: Id169b68cc93bb6eb4cdca384efaaf971fcfa32b7 Reviewed-on: https://go-review.googlesource.com/c/go/+/666316 Reviewed-by: abner chenc <chenguoqi@loongson.cn> Reviewed-by: Junyang Shao <shaojunyang@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/mkduff.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/mkduff.go b/src/runtime/mkduff.go
index b7f07b5087..86521d6d04 100644
--- a/src/runtime/mkduff.go
+++ b/src/runtime/mkduff.go
@@ -179,8 +179,8 @@ func copyARM64(w io.Writer) {
func zeroLOONG64(w io.Writer) {
// R0: always zero
- // R19 (aka REGRT1): ptr to memory to be zeroed
- // On return, R19 points to the last zeroed dword.
+ // R20: ptr to memory to be zeroed
+ // On return, R20 points to the last zeroed dword.
fmt.Fprintln(w, "TEXT runtime·duffzero<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0")
for i := 0; i < 128; i++ {
fmt.Fprintln(w, "\tMOVV\tR0, (R20)")