Changes in kernel/arch/amd64/src/context.S [a1f60f3:1dbfe98] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/context.S
ra1f60f3 r1dbfe98 41 41 context_save_arch: 42 42 movq (%rsp), %rdx # the caller's return %eip 43 44 # In %edi is passed 1st argument 45 CONTEXT_SAVE_ARCH_CORE %rdi %rdx 43 46 44 # 1st argument passed in %edi 45 CONTEXT_SAVE_ARCH_CORE %rdi %rdx 46 47 xorq %rax, %rax # context_save returns 1 47 xorq %rax,%rax # context_save returns 1 48 48 incq %rax 49 49 ret … … 55 55 # pointed by the 1st argument. Returns 0 in EAX. 56 56 # 57 context_restore_arch: 57 context_restore_arch: 58 58 59 CONTEXT_RESTORE_ARCH_CORE %rdi %rdx 59 60 movq %rdx, 61 62 xorq %rax, %rax# context_restore returns 060 61 movq %rdx,(%rsp) 62 63 xorq %rax,%rax # context_restore returns 0 63 64 ret
Note:
See TracChangeset
for help on using the changeset viewer.