Skip to content

Commit 78a8a0b

Browse files
Indicate that s0 is the frame pointer.
Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 245f0eb commit 78a8a0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

riscv-elf.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ x28-x31 | t3-t6 | Temporary registers | No
6262
In the standard ABI, procedures should not modify the integer registers tp and
6363
gp, because signal handlers may rely upon their values.
6464

65+
The presence of a frame pointer is optional. If a frame pointer exists
66+
it must reside in x8 (s0), the register remains callee-saved.
67+
6568
Floating-point Register Convention <a name=floating-point-register-convention>
6669
-------------------------------------------------------------------------
6770
Name | ABI Mnemonic | Meaning | Preserved across calls?

0 commit comments

Comments
 (0)