Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / sys / emulation / linux / i386 / linux_locore.s
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 $ */
3
4 #include "linux_assym.h"                        /* system definitions */
5 #include <machine/asmacros.h>                   /* miscellaneous asm macros */
6
7 #include <i386/linux/linux_syscall.h>           /* system call numbers */
8
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 */
17 0:      jmp     0b
18         ALIGN_TEXT
19 /* XXXXX */
20 linux_rt_sigcode:
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 */
27 0:      jmp     0b
28         ALIGN_TEXT
29 /* XXXXX */
30 linux_esigcode:
31
32         .data
33         .globl  linux_szsigcode, linux_sznonrtsigcode
34 linux_szsigcode:
35         .long   linux_esigcode-linux_sigcode
36 linux_sznonrtsigcode:
37         .long   linux_rt_sigcode-linux_sigcode