xref: /original-bsd/lib/libc/i386/sys/sigsuspend.s (revision 38ca7aa6)
1/*-
2 * Copyright (c) 1990, 1993
3 *	The Regents of the University of California.  All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * %sccs.include.redist.c%
9 */
10
11#if defined(SYSLIBC_SCCS) && !defined(lint)
12	.asciz "@(#)sigsuspend.s	8.1 (Berkeley) 06/04/93"
13#endif /* SYSLIBC_SCCS and not lint */
14
15#include "SYS.h"
16
17err:
18	jmp	cerror
19
20ENTRY(sigsuspend)
21	movl	4(%esp),%eax		# fetch mask arg
22	movl	(%eax),%eax		# indirect to mask arg
23	movl	%eax,4(%esp)
24	movl	$ SYS_sigsuspend ,%eax
25	LCALL(0x7,0)
26	jb	err
27	xorl	%eax,%eax		# shouldn t happen
28	ret
29