Changeset 76cec1e in mainline for arch/ia32/src/context.s
- Timestamp:
- 2005-07-15T21:57:30Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b4a4c5e3
- Parents:
- e41c47e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/context.s
re41c47e r76cec1e 43 43 movl 4(%esp),%eax # the caller's return %eip 44 44 movl 8(%esp),%ebx # address of the kernel_context variable to save context to 45 45 movl %eax,4(%ebx) # %eip -> ctx->pc 46 46 movl %esp,(%ebx) # %esp -> ctx->sp 47 47 … … 54 54 movl %esi,20(%eax) 55 55 movl %edi,24(%eax) 56 movl %ebp,28(%eax) 57 56 movl %ebp,28(%eax) 57 58 58 xorl %eax,%eax # context_save returns 1 59 59 incl %eax … … 65 65 # Restore CPU context from the kernel_context variable 66 66 # pointed by the 1st argument. Returns 0 in EAX. 67 # 67 # 68 68 context_restore: 69 69 movl 4(%esp),%eax # address of the kernel_context variable to restore context from … … 80 80 movl 4(%eax),%eax 81 81 movl %eax,(%esp) # ctx->pc -> saver's return %eip 82 82 xorl %eax,%eax # context_restore returns 0 83 83 ret
Note:
See TracChangeset
for help on using the changeset viewer.