Skip to content
  • Peter Trommler's avatar
    RTS: Refactor Haskell-C glue for PPC 64-bit · d8ba9e6f
    Peter Trommler authored and Marge Bot's avatar Marge Bot committed
    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.
    d8ba9e6f