Skip to content

Commit

Permalink
Indicate that s0 is the frame pointer.
Browse files Browse the repository at this point in the history
Signed-off-by: Palmer Dabbelt <[email protected]>
  • Loading branch information
palmer-dabbelt committed Jun 8, 2019
1 parent 245f0eb commit 78a8a0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions riscv-elf.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ x28-x31 | t3-t6 | Temporary registers | No
In the standard ABI, procedures should not modify the integer registers tp and
gp, because signal handlers may rely upon their values.

The presence of a frame pointer is optional. If a frame pointer exists
it must reside in x8 (s0), the register remains callee-saved.

Floating-point Register Convention <a name=floating-point-register-convention>
-------------------------------------------------------------------------
Name | ABI Mnemonic | Meaning | Preserved across calls?
Expand Down

0 comments on commit 78a8a0b

Please sign in to comment.