Changeset 4b2c872d in mainline for arch/amd64/src/context.S
- Timestamp:
- 2005-10-18T09:33:02Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8005218
- Parents:
- 22f7769
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/context.S
r22f7769 r4b2c872d 29 29 .text 30 30 31 .global context_save 32 .global context_restore 31 .global context_save_arch 32 .global context_restore_arch 33 33 34 34 #include <arch/context_offset.h> … … 36 36 ## Save current CPU context 37 37 # 38 # Save CPU context to the kernel_context variable38 # Save CPU context to context_t variable 39 39 # pointed by the 1st argument. Returns 1 in EAX. 40 40 # 41 context_save :41 context_save_arch: 42 42 movq (%rsp), %rdx # the caller's return %eip 43 43 # In %edi is passed 1st argument … … 59 59 ## Restore current CPU context 60 60 # 61 # Restore CPU context from the kernel_context variable61 # Restore CPU context from context_t variable 62 62 # pointed by the 1st argument. Returns 0 in EAX. 63 63 # 64 context_restore :64 context_restore_arch: 65 65 movq OFFSET_R15(%rdi), %r15 66 66 movq OFFSET_R14(%rdi), %r14
Note:
See TracChangeset
for help on using the changeset viewer.