Commit d8ba9e6f authored by Peter Trommler's avatar Peter Trommler 🥁 Committed by Marge Bot

RTS: Refactor Haskell-C glue for PPC 64-bit

Make sure the stack is 16 byte aligned even when reserved stack
bytes are not a multiple of 16 bytes.

Avoid saving r2 (TOC). On ELF v1 the function descriptor of StgReturn
has the same TOC as StgRun, on ELF v2 the TOC is recomputed in the
function prologue.

Use the ABI provided functions to save clobbered GPRs and FPRs.

Improve comments. Describe what the stack looks like and how it relates
to the respective ABIs.
parent 0e83efa2
Pipeline #21594 failed with stages
in 421 minutes and 1 second