Changeset 8476a8d in mainline
- Timestamp:
- 2008-03-15T11:17:50Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 308cdd1
- Parents:
- 1dbfe98
- Location:
- uspace/lib/libc/arch/ia32/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/ia32/src/fibril.S
r1dbfe98 r8476a8d 44 44 movl 4(%esp),%edx # address of the context variable to save context to 45 45 46 # save registers to givenstructure46 # save registers to the context structure 47 47 CONTEXT_SAVE_ARCH_CORE %edx %eax 48 48 … … 64 64 movl 4(%esp),%eax # address of the context variable to restore context from 65 65 66 # restore registers from jmp_buf66 # restore registers from the context structure 67 67 CONTEXT_RESTORE_ARCH_CORE %eax %edx 68 68 -
uspace/lib/libc/arch/ia32/src/setjmp.S
r1dbfe98 r8476a8d 36 36 setjmp: 37 37 movl 0(%esp),%eax # save pc value into eax 38 movl 4(%esp),%edx # address of the context variable to save context to38 movl 4(%esp),%edx # address of the jmp_buf structure to save context to 39 39 40 # save registers to givenstructure40 # save registers to the jmp_buf structure 41 41 CONTEXT_SAVE_ARCH_CORE %edx %eax 42 42 … … 50 50 movl 8(%esp), %eax # put return value into eax 51 51 52 # restore registers from jmp_buf52 # restore registers from the jmp_buf structure 53 53 CONTEXT_RESTORE_ARCH_CORE %ecx %edx 54 54
Note:
See TracChangeset
for help on using the changeset viewer.