1 #include "svr4_assym.h" /* system definitions */
2 #include <machine/asmacros.h> /* miscellaneous asm macros */
4 #include "../svr4_syscall.h" /* system call numbers */
6 /* $FreeBSD: src/sys/i386/svr4/svr4_locore.s,v 1.10.2.1 2000/07/07 00:38:51 obrien Exp $ */
7 /* $DragonFly: src/sys/emulation/svr4/i386/Attic/svr4_locore.s,v 1.4 2003/08/07 21:17:20 dillon Exp $ */
9 NON_GPROF_ENTRY(svr4_sigcode)
10 call *SVR4_SIGF_HANDLER(%esp)
11 leal SVR4_SIGF_UC(%esp),%eax # ucp (the call may have clobbered the
12 # copy at SIGF_UCP(%esp))
14 #warning "VM86 doesn't work yet - do you really want this?"
15 testl $PSL_VM,SVR4_UC_EFLAGS(%eax)
18 movl SVR4_UC_GS(%eax),%gs
19 1: pushl %eax # pointer to ucontext
20 pushl $1 # set context
21 movl $svr4_sys_context,%eax
22 int $0x80 # enter kernel with args on stack
31 .long svr4_esigcode - svr4_sigcode