_setjmp.S (180080) | _setjmp.S (184547) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#if defined(LIBC_SCCS) && !defined(lint) 34 .asciz "@(#)_setjmp.s 5.1 (Berkeley) 4/23/90" 35#endif /* LIBC_SCCS and not lint */ 36#include <machine/asm.h> | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#if defined(LIBC_SCCS) && !defined(lint) 34 .asciz "@(#)_setjmp.s 5.1 (Berkeley) 4/23/90" 35#endif /* LIBC_SCCS and not lint */ 36#include <machine/asm.h> |
37__FBSDID("$FreeBSD: head/lib/libc/amd64/gen/_setjmp.S 180080 2008-06-28 17:55:43Z das $"); | 37__FBSDID("$FreeBSD: head/lib/libc/amd64/gen/_setjmp.S 184547 2008-11-02 01:10:54Z peter $"); |
38 39/* 40 * C library -- _setjmp, _longjmp 41 * 42 * _longjmp(a,v) 43 * will generate a "return(v)" from the last call to 44 * _setjmp(a) 45 * by restoring registers from the environment 'a'. --- 10 unchanged lines hidden (view full) --- 56 movq %r12,32(%rax) /* 4; r12 */ 57 movq %r13,40(%rax) /* 5; r13 */ 58 movq %r14,48(%rax) /* 6; r14 */ 59 movq %r15,56(%rax) /* 7; r15 */ 60 fnstcw 64(%rax) /* 8; fpu cw */ 61 stmxcsr 68(%rax) /* and mxcsr */ 62 xorq %rax,%rax 63 ret | 38 39/* 40 * C library -- _setjmp, _longjmp 41 * 42 * _longjmp(a,v) 43 * will generate a "return(v)" from the last call to 44 * _setjmp(a) 45 * by restoring registers from the environment 'a'. --- 10 unchanged lines hidden (view full) --- 56 movq %r12,32(%rax) /* 4; r12 */ 57 movq %r13,40(%rax) /* 5; r13 */ 58 movq %r14,48(%rax) /* 6; r14 */ 59 movq %r15,56(%rax) /* 7; r15 */ 60 fnstcw 64(%rax) /* 8; fpu cw */ 61 stmxcsr 68(%rax) /* and mxcsr */ 62 xorq %rax,%rax 63 ret |
64END(_setjmp) |
|
64 65 .weak CNAME(_longjmp) 66 .set CNAME(_longjmp),CNAME(___longjmp) 67ENTRY(___longjmp) 68 movq %rdi,%rdx 69 /* Restore the mxcsr, but leave exception flags intact. */ 70 stmxcsr -4(%rsp) 71 movl 68(%rdx),%eax --- 13 unchanged lines hidden (view full) --- 85 movq 48(%rdx),%r14 86 movq 56(%rdx),%r15 87 fldcw 64(%rdx) 88 testq %rax,%rax 89 jnz 1f 90 incq %rax 911: movq %rcx,0(%rsp) 92 ret | 65 66 .weak CNAME(_longjmp) 67 .set CNAME(_longjmp),CNAME(___longjmp) 68ENTRY(___longjmp) 69 movq %rdi,%rdx 70 /* Restore the mxcsr, but leave exception flags intact. */ 71 stmxcsr -4(%rsp) 72 movl 68(%rdx),%eax --- 13 unchanged lines hidden (view full) --- 86 movq 48(%rdx),%r14 87 movq 56(%rdx),%r15 88 fldcw 64(%rdx) 89 testq %rax,%rax 90 jnz 1f 91 incq %rax 921: movq %rcx,0(%rsp) 93 ret |
94END(___longjmp) |
|