Changeset 8476a8d in mainline for uspace/lib/libc/arch/ia32/src/setjmp.S
- Timestamp:
- 2008-03-15T11:17:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 308cdd1
- Parents:
- 1dbfe98
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.