diff options
| author | George Adams <georgeadams1995@gmail.com> | 2026-02-27 15:45:55 +0000 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2026-02-28 06:21:13 -0800 |
| commit | ad168c5131c83981daefdb0db8a45d1d3315c388 (patch) | |
| tree | 0e009b3f1521bedecd94e245d9c3866acdd549ce /src/runtime/malloc_test.go | |
| parent | ff023a334125bb4edb43db352d2c6a5eb414d2e4 (diff) | |
| download | go-ad168c5131c83981daefdb0db8a45d1d3315c388.tar.xz | |
runtime/cgo: add abi_riscv64.h for callee-saved register macros
Add abi_riscv64.h with SAVE_GPR/SAVE_FPR macros for saving and
restoring the RISC-V callee-saved registers, following the pattern
established by the other abi_*.h headers.
Refactor asm_riscv64.s (cgo crosscall2), asm_riscv64.s (runtime
_rt0_riscv64_lib), and race_riscv64.s (racecallbackthunk) to use
the new macros, replacing inline register save/restore sequences.
Change-Id: I83cef17a35c57fc8b5e045e7181460283ae5b423
Reviewed-on: https://go-review.googlesource.com/c/go/+/749900
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/malloc_test.go')
0 files changed, 0 insertions, 0 deletions
