Change information
Commit message:
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
Files:
- M src/runtime/asm_riscv64.s
- A src/runtime/cgo/abi_riscv64.h
- M src/runtime/cgo/asm_riscv64.s
- M src/runtime/race_riscv64.s
Change size: M
Delta: 4 files changed, 89 insertions(+), 144 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +1 by Russ Cox, +2 by Quim Muntal, +2 by David Chase
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI