Changeset 4b2c872d in mainline for arch/ia32/src
- 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
-
arch/ia32/src/context.s (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/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 35 35 ## Save current CPU context 36 36 # 37 # Save CPU context to the kernel_context variable37 # Save CPU context to the context_t variable 38 38 # pointed by the 1st argument. Returns 1 in EAX. 39 39 # 40 context_save :40 context_save_arch: 41 41 movl 0(%esp),%eax # the caller's return %eip 42 42 movl 4(%esp),%edx # address of the kernel_context variable to save context to … … 54 54 55 55 56 ## Restore currentCPU context56 ## Restore saved CPU context 57 57 # 58 # Restore CPU context from the kernel_context variable58 # Restore CPU context from context_t variable 59 59 # pointed by the 1st argument. Returns 0 in EAX. 60 60 # 61 context_restore :61 context_restore_arch: 62 62 movl 4(%esp),%eax # address of the kernel_context variable to restore context from 63 63 movl 0(%eax),%esp # ctx->sp -> %esp
Note:
See TracChangeset
for help on using the changeset viewer.
