Skip to content
  • Breno Leitao's avatar
    f47c3824
    gc.h: Add SET_MACHINE_STACK_END specific for Powerpc64 (#1767) · f47c3824
    Breno Leitao authored
    
    
    Currently we are not able to grab the correct end/top of the stack on
    powerpc64 due to the fact that it uses the fallback function.
    
    The fallback function does not return the correct top of the stack
    because it adds a new frame and the returned top of the stack contains
    this frame overhead that could be something around 112 bytes on
    Powerpc64.
    
    This patch simply gets the correct top of the stack pointer, which is
    always on r1 register according to both ABI v1 and ABI v2 (Little
    endian).
    
    Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
    f47c3824
    gc.h: Add SET_MACHINE_STACK_END specific for Powerpc64 (#1767)
    Breno Leitao authored
    
    
    Currently we are not able to grab the correct end/top of the stack on
    powerpc64 due to the fact that it uses the fallback function.
    
    The fallback function does not return the correct top of the stack
    because it adds a new frame and the returned top of the stack contains
    this frame overhead that could be something around 112 bytes on
    Powerpc64.
    
    This patch simply gets the correct top of the stack pointer, which is
    always on r1 register according to both ABI v1 and ABI v2 (Little
    endian).
    
    Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
Loading