1 /* $FreeBSD: src/sys/i386/linux/linux_locore.s,v 1.5.2.3 2001/11/05 19:08:23 marcel Exp $ */
2 /* $DragonFly: src/sys/emulation/linux/i386/linux_locore.s,v 1.2 2003/06/17 04:28:38 dillon Exp $ */
4 #include "linux_assym.h" /* system definitions */
5 #include <machine/asmacros.h> /* miscellaneous asm macros */
7 #include <i386/linux/linux_syscall.h> /* system call numbers */
9 NON_GPROF_ENTRY(linux_sigcode)
10 call *LINUX_SIGF_HANDLER(%esp)
11 leal LINUX_SIGF_SC(%esp),%ebx /* linux scp */
12 movl LINUX_SC_GS(%ebx),%gs
13 movl %esp, %ebx /* pass sigframe */
14 push %eax /* fake ret addr */
15 movl $LINUX_SYS_linux_sigreturn,%eax /* linux_sigreturn() */
16 int $0x80 /* enter kernel with args */
21 call *LINUX_RT_SIGF_HANDLER(%esp)
22 leal LINUX_RT_SIGF_UC(%esp),%ebx /* linux ucp */
23 movl LINUX_SC_GS(%ebx),%gs
24 push %eax /* fake ret addr */
25 movl $LINUX_SYS_linux_rt_sigreturn,%eax /* linux_rt_sigreturn() */
26 int $0x80 /* enter kernel with args */
33 .globl linux_szsigcode, linux_sznonrtsigcode
35 .long linux_esigcode-linux_sigcode
37 .long linux_rt_sigcode-linux_sigcode