Ignore:
File:
1 edited

Legend:

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

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