Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv32: align stack pointer to 16-bytes #21

Merged
merged 1 commit into from
Dec 27, 2023

Commits on Dec 27, 2023

  1. riscv32: align stack pointer to 16-bytes

    Even though rv32 is only 32-bits, all RISC-V stacks must be aligned to a
    16-byte boundary. For discussion on this, see:
    
    riscv-non-isa/riscv-elf-psabi-doc#21
    
    As an example of why this is important, the `c.addi16sp` compressed
    instruction is only able to adjust the stack pointer by 16-byte
    increments.
    
    Signed-off-by: Sean Cross <[email protected]>
    xobs committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    e2c199e View commit details
    Browse the repository at this point in the history