Changeset 8844e70 in mainline for kernel/arch/ia32/src/context.S
- Timestamp:
- 2016-04-11T17:03:47Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3b0f1b9a
- Parents:
- 3a34852
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/context.S
r3a34852 r8844e70 27 27 # 28 28 29 #include <abi/asmtool.h> 29 30 #include <arch/context_struct.h> 30 31 31 32 .text 32 33 .global context_save_arch34 .global context_restore_arch35 36 33 37 34 ## Save current CPU context … … 40 37 # pointed by the 1st argument. Returns 1 in EAX. 41 38 # 42 context_save_arch: 39 FUNCTION_BEGIN(context_save_arch) 43 40 movl 0(%esp), %eax # save pc value into eax 44 41 movl 4(%esp), %edx # address of the context variable to save context to … … 55 52 incl %eax 56 53 ret 54 FUNCTION_END(context_save_arch) 57 55 58 56 … … 62 60 # pointed by the 1st argument. Returns 0 in EAX. 63 61 # 64 context_restore_arch: 62 FUNCTION_BEGIN(context_restore_arch) 65 63 movl 4(%esp), %eax # address of the context variable to restore context from 66 64 … … 76 74 xorl %eax, %eax # context_restore returns 0 77 75 ret 78 76 FUNCTION_END(context_restore_arch)
Note:
See TracChangeset
for help on using the changeset viewer.