Changeset d6f9fff in mainline for kernel/arch/ia32/src/context.S
- Timestamp:
- 2016-04-27T12:39:14Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1a5eca4
- Parents:
- 8a36bc1e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/context.S
r8a36bc1e rd6f9fff 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.