Changeset bc1f1c2 in mainline for kernel/arch/ia32/src/context.s
- Timestamp:
- 2007-06-28T00:54:12Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12f91130
- Parents:
- b9641ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/context.s
rb9641ee rbc1f1c2 40 40 context_save_arch: 41 41 movl 0(%esp),%eax # the caller's return %eip 42 movl 4(%esp),%edx # address of the kernel_context variable to save context to42 movl 4(%esp),%edx # address of the context variable to save context to 43 43 44 44 movl %esp,0(%edx) # %esp -> ctx->sp … … 60 60 # 61 61 context_restore_arch: 62 movl 4(%esp),%eax # address of the kernel_context variable to restore context from62 movl 4(%esp),%eax # address of the context variable to restore context from 63 63 movl 0(%eax),%esp # ctx->sp -> %esp 64 64 movl 4(%eax),%edx # ctx->pc -> %edx
Note:
See TracChangeset
for help on using the changeset viewer.