Changeset 32573ff in mainline for kernel/arch/ia32/src/context.S
- Timestamp:
- 2016-05-02T20:58:16Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c4b26c
- Parents:
- 6adb775f (diff), 5035ba05 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/context.S
r6adb775f r32573ff 29 29 #include <abi/asmtool.h> 30 30 #include <arch/context_struct.h> 31 #include <arch/vreg.h> 31 32 32 33 .text … … 48 49 movl %edi, CONTEXT_OFFSET_EDI(%edx) # %edi -> ctx->edi 49 50 movl %ebp, CONTEXT_OFFSET_EBP(%edx) # %ebp -> ctx->ebp 51 52 mov vreg_ptr, %ecx 53 movl %gs:VREG_TP(%ecx), %ecx 54 movl %ecx, CONTEXT_OFFSET_TP(%edx) 50 55 51 56 xorl %eax, %eax # context_save returns 1 … … 72 77 73 78 movl %edx, 0(%esp) # put saved pc on stack 79 80 mov vreg_ptr, %ecx 81 movl CONTEXT_OFFSET_TP(%eax), %edx 82 movl %edx, %gs:VREG_TP(%ecx) 83 74 84 xorl %eax, %eax # context_restore returns 0 75 85 ret 76 FUNCTION_END(context_restore_arch)
Note:
See TracChangeset
for help on using the changeset viewer.