Purpose of RISCV_GCC_RED_ZONE_SIZE?

Hesham Almatary heshamelmatary at gmail.com
Wed Jun 27 09:32:30 UTC 2018


Hi Sebastian,

On Wed, Jun 27, 2018 at 7:07 AM, Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
> Hello,
>
> the RISC-V port has a RISCV_GCC_RED_ZONE_SIZE define. What is the purpose?
>
Not coming into my mind why it's there. If you believe it shouldn't be
there (and tests pass), feel free to delete it.

> The current ABI says that there is no stack red zone:
>
> https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md
>
> "Procedures must not rely upon the persistence of stack-allocated data whose
> addresses lie below the stack pointer."
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax     : +49 89 189 47 41-09
> E-Mail  : sebastian.huber at embedded-brains.de
> PGP     : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>



-- 
Hesham



More information about the devel mailing list