Ignore:
File:
1 edited

Legend:

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

    r4bf0926e ra35b458  
    4040FUNCTION_BEGIN(context_save_arch)
    4141        movq (%rsp), %rdx     # the caller's return %rip
    42        
     42
    4343        movq %rdx, CONTEXT_OFFSET_PC(%rdi)
    4444        movq %rsp, CONTEXT_OFFSET_SP(%rdi)
    45        
     45
    4646        movq %rbx, CONTEXT_OFFSET_RBX(%rdi)
    4747        movq %rbp, CONTEXT_OFFSET_RBP(%rdi)
     
    5050        movq %r14, CONTEXT_OFFSET_R14(%rdi)
    5151        movq %r15, CONTEXT_OFFSET_R15(%rdi)
    52        
     52
    5353#ifdef MEMORY_MODEL_large
    5454        movabsq $vreg_ptr, %rsi
     
    5959        movq %fs:VREG_TP(%rsi), %rsi
    6060        movq %rsi, CONTEXT_OFFSET_TP(%rdi)
    61        
     61
    6262        xorl %eax, %eax       # context_save returns 1
    6363        incl %eax
     
    7878        movq CONTEXT_OFFSET_RBP(%rdi), %rbp
    7979        movq CONTEXT_OFFSET_RBX(%rdi), %rbx
    80        
     80
    8181        movq CONTEXT_OFFSET_SP(%rdi), %rsp
    82        
     82
    8383        movq CONTEXT_OFFSET_PC(%rdi), %rdx
    8484        movq %rdx, (%rsp)
    85        
     85
    8686        movq CONTEXT_OFFSET_TP(%rdi), %rcx
    8787#ifdef MEMORY_MODEL_large
     
    9292#endif
    9393        movq %rcx, %fs:VREG_TP(%rsi)
    94        
     94
    9595        xorl %eax, %eax       # context_restore returns 0
    9696        ret
Note: See TracChangeset for help on using the changeset viewer.