1/* $NetBSD: linux32_sigcode.S,v 1.6 2018/07/14 14:29:40 maxv Exp $ */ 2 3#include "assym.h" 4#include <machine/asm.h> 5 6 .code32 7ENTRY(linux32_sigcode) 8 call *LINUX32_SF_HANDLER(%esp) 9 leal LINUX32_SF_SC(%esp),%ebx /* scp */ 10 pushl %eax 11 movl $LINUX32_SYS_sigreturn,%eax 12 int $0x80 13 movl $LINUX32_SYS_exit,%eax 14 int $0x80 15END(linux32_sigcode) 16 17 .balign 16 18ENTRY(linux32_rt_sigcode) 19 call *LINUX32_RT_SF_HANDLER(%esp) 20 leal LINUX32_RT_SF_UC(%esp),%ebx /* scp */ 21 pushl %eax 22 movl $LINUX32_SYS_rt_sigreturn,%eax 23 int $0x80 24 movl $LINUX32_SYS_exit,%eax 25 int $0x80 26 .balign 16 27 .globl _C_LABEL(linux32_esigcode) 28_C_LABEL(linux32_esigcode): 29END(linux32_rt_sigcode) 30 31