Skip to content
  • Henrik Gramner's avatar
    x86inc: Avoid using eax/rax for storing the stack pointer · 0706ddb1
    Henrik Gramner authored
    When allocating stack space with an alignment requirement that is larger
    than the current stack alignment we need to store a copy of the original
    stack pointer in order to be able to restore it later.
    
    If we chose to use another register for this purpose we should not pick
    eax/rax since it can be overwritten as a return value.
    0706ddb1