Ignore:
File:
1 edited

Legend:

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

    r1a5eca4 r3b0f1b9a  
    2929#include <abi/asmtool.h>
    3030#include <arch/context_struct.h>
    31 #include <arch/vreg.h>
    3231
    3332.text
     
    5150        movq %r14, CONTEXT_OFFSET_R14(%rdi)
    5251        movq %r15, CONTEXT_OFFSET_R15(%rdi)
    53 
    54         movq vreg_ptr, %rsi
    55         movq %fs:VREG_TP(%rsi), %rsi
    56         movq %rsi, CONTEXT_OFFSET_TP(%rdi)
    5752       
    5853        xorl %eax, %eax       # context_save returns 1
     
    7772        movq CONTEXT_OFFSET_SP(%rdi), %rsp   # ctx->sp -> %rsp
    7873       
    79         movq CONTEXT_OFFSET_PC(%rdi), %rdx
     74        movq CONTEXT_OFFSET_PC(%rdi), %rdx
     75       
    8076        movq %rdx, (%rsp)
    81 
    82         movq CONTEXT_OFFSET_TP(%rdi), %rcx
    83         movq vreg_ptr, %rsi
    84         movq %rcx, %fs:VREG_TP(%rsi)
    8577       
    8678        xorl %eax, %eax       # context_restore returns 0
Note: See TracChangeset for help on using the changeset viewer.