Deleted Added
full compact
ia32_sigtramp.S (162572) ia32_sigtramp.S (187948)
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 162572 2006-09-23 13:42:09Z davidxu $
26 * $FreeBSD: head/sys/amd64/ia32/ia32_sigtramp.S 187948 2009-01-31 11:37:21Z obrien $
27 */
28
29#include "opt_compat.h"
30
31#include <machine/asmacros.h>
32#include <sys/syscall.h>
33
34#include "ia32_assym.h"

--- 5 unchanged lines hidden (view full) ---

40 * XXX may need to be MD to match backend sendsig handoff protocol
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
27 */
28
29#include "opt_compat.h"
30
31#include <machine/asmacros.h>
32#include <sys/syscall.h>
33
34#include "ia32_assym.h"

--- 5 unchanged lines hidden (view full) ---

40 * XXX may need to be MD to match backend sendsig handoff protocol
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_ES(%eax),%es /* restore %es */
49 movl IA32_UC_DS(%eax),%ds /* restore %ds */
48 mov IA32_UC_ES(%eax),%es /* restore %es */
49 mov IA32_UC_DS(%eax),%ds /* restore %ds */
50 movl $SYS_sigreturn,%eax
51 pushl %eax /* junk to fake return addr. */
52 int $0x80 /* enter kernel with args */
53 /* on stack */
541:
55 jmp 1b
56
57#ifdef COMPAT_FREEBSD4
58 ALIGN_TEXT
59freebsd4_ia32_sigcode:
60 calll *IA32_SIGF_HANDLER(%esp)
61 leal IA32_SIGF_UC4(%esp),%eax/* get ucontext */
62 pushl %eax
50 movl $SYS_sigreturn,%eax
51 pushl %eax /* junk to fake return addr. */
52 int $0x80 /* enter kernel with args */
53 /* on stack */
541:
55 jmp 1b
56
57#ifdef COMPAT_FREEBSD4
58 ALIGN_TEXT
59freebsd4_ia32_sigcode:
60 calll *IA32_SIGF_HANDLER(%esp)
61 leal IA32_SIGF_UC4(%esp),%eax/* get ucontext */
62 pushl %eax
63 movl IA32_UC4_ES(%eax),%es /* restore %es */
64 movl IA32_UC4_DS(%eax),%ds /* restore %ds */
63 mov IA32_UC4_ES(%eax),%es /* restore %es */
64 mov IA32_UC4_DS(%eax),%ds /* restore %ds */
65 movl $344,%eax /* 4.x SYS_sigreturn */
66 pushl %eax /* junk to fake return addr. */
67 int $0x80 /* enter kernel with args */
68 /* on stack */
691:
70 jmp 1b
71#endif
72

--- 12 unchanged lines hidden ---
65 movl $344,%eax /* 4.x SYS_sigreturn */
66 pushl %eax /* junk to fake return addr. */
67 int $0x80 /* enter kernel with args */
68 /* on stack */
691:
70 jmp 1b
71#endif
72

--- 12 unchanged lines hidden ---