ia32_sigtramp.S (114987) | ia32_sigtramp.S (119334) |
---|---|
1/*- 2 * Copyright (c) 2003 Peter Wemm 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2003 Peter Wemm 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/amd64/ia32/ia32_sigtramp.S 114987 2003-05-14 04:10:49Z peter $ | 26 * $FreeBSD: head/sys/amd64/ia32/ia32_sigtramp.S 119334 2003-08-22 23:19:02Z peter $ |
27 */ 28 29#include "opt_compat.h" 30 31#include <machine/asmacros.h> 32#include <sys/syscall.h> 33 34#include "ia32_assym.h" 35 36 .text 37 .code32 38/* 39 * Signal trampoline, copied to top of user stack | 27 */ 28 29#include "opt_compat.h" 30 31#include <machine/asmacros.h> 32#include <sys/syscall.h> 33 34#include "ia32_assym.h" 35 36 .text 37 .code32 38/* 39 * Signal trampoline, copied to top of user stack |
40 * XXX may need to be MD to match backend sendsig handoff protocol |
|
40 */ 41 ALIGN_TEXT 42 .globl ia32_sigcode 43ia32_sigcode: 44 calll *IA32_SIGF_HANDLER(%esp) 45 leal IA32_SIGF_UC(%esp),%eax /* get ucontext */ 46 pushl %eax 47 movl IA32_UC_GS(%eax),%gs /* restore %gs */ --- 40 unchanged lines hidden --- | 41 */ 42 ALIGN_TEXT 43 .globl ia32_sigcode 44ia32_sigcode: 45 calll *IA32_SIGF_HANDLER(%esp) 46 leal IA32_SIGF_UC(%esp),%eax /* get ucontext */ 47 pushl %eax 48 movl IA32_UC_GS(%eax),%gs /* restore %gs */ --- 40 unchanged lines hidden --- |