Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/context.S

    r3eebe571 r1a5eca4  
    3939#
    4040FUNCTION_BEGIN(context_save_arch)
    41         movq (%rsp), %rdx     # the caller's return %rip
     41        movq (%rsp), %rdx     # the caller's return %eip
    4242       
     43        # 1st argument passed in %edi
    4344        movq %rdx, CONTEXT_OFFSET_PC(%rdi)
    4445        movq %rsp, CONTEXT_OFFSET_SP(%rdi)
     
    7475        movq CONTEXT_OFFSET_RBX(%rdi), %rbx
    7576       
    76         movq CONTEXT_OFFSET_SP(%rdi), %rsp
     77        movq CONTEXT_OFFSET_SP(%rdi), %rsp   # ctx->sp -> %rsp
    7778       
    7879        movq CONTEXT_OFFSET_PC(%rdi), %rdx
Note: See TracChangeset for help on using the changeset viewer.