Purpose of RISCV_GCC_RED_ZONE_SIZE?

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jun 27 06:07:07 UTC 2018


Hello,

the RISC-V port has a RISCV_GCC_RED_ZONE_SIZE define. What is the purpose?

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.



More information about the devel mailing list