xref: /original-bsd/lib/libc/tahoe/sys/sigreturn.s (revision c3e32dec)
1/*
2 * Copyright (c) 1983, 1993
3 *	The Regents of the University of California.  All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 */
7
8#if defined(SYSLIBC_SCCS) && !defined(lint)
9	.asciz "@(#)sigreturn.s	8.1 (Berkeley) 06/04/93"
10#endif /* SYSLIBC_SCCS and not lint */
11
12#include "SYS.h"
13
14/*
15 * We must preserve the state of the registers as the user has set them up.
16 */
17#ifdef PROF
18#define	POPR(r)	movl (sp)+,r
19#undef ENTRY
20#define	ENTRY(x) \
21	.globl _/**/x; .align 2; _/**/x: .word 0; \
22	pushl r0; pushl r1; pushl r2; pushl r3; pushl r4; pushl r5; \
23	.data; 1:; .long 0; .text; pushl $1b; callf $8,mcount; \
24	POPR(r5); POPR(r4); POPR(r3); POPR(r2); POPR(r1); POPR(r0);
25#endif PROF
26
27SYSCALL(sigreturn)
28	ret
29