Changeset da585a52 in mainline for arch/ia32/src/context.s
- Timestamp:
- 2005-05-11T18:58:54Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d7568a9f
- Parents:
- 93ca46f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/context.s
r93ca46f rda585a52 36 36 .global fpu_lazy_context_restore 37 37 38 39 ## Save current CPU context 38 40 # 39 # save context of this CPU 41 # Save CPU context to the kernel_context variable 42 # pointed by the 1st argument. Returns 1 in EAX. 43 # 40 44 context_save: 41 45 push %ebx … … 59 63 incl %eax 60 64 ret 61 65 66 67 ## Restore current CPU context 62 68 # 63 # restore saved context on this CPU 69 # Restore CPU context from the kernel_context variable 70 # pointed by the 1st argument. Returns 0 in EAX. 71 # 64 72 context_restore: 65 73 movl 4(%esp),%eax # address of the kernel_context variable to restore context from … … 78 86 xorl %eax,%eax # context_restore returns 0 79 87 ret 80 81
Note:
See TracChangeset
for help on using the changeset viewer.