xref: /original-bsd/lib/libc/i386/sys/sigreturn.s (revision c3e32dec)
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 "@(#)sigreturn.s	8.1 (Berkeley) 06/04/93"
13#endif /* SYSLIBC_SCCS and not lint */
14
15#include "SYS.h"
16
17/*
18 * We must preserve the state of the registers as the user has set them up.
19 */
20#ifdef PROF
21#undef ENTRY
22#define	ENTRY(x) \
23	.globl _/**/x; .align 2; _/**/x:  pusha ; \
24	.data; 1:; .long 0; .text; movl $1b,%eax; call mcount; popa ; nop
25#endif /* PROF */
26
27SYSCALL(sigreturn)
28	ret
29