xref: /original-bsd/lib/libc/hp300/sys/sigreturn.s (revision e59fb703)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * the Systems Programming Group of the University of Utah Computer
7 * Science Department.
8 *
9 * %sccs.include.redist.c%
10 */
11
12#if defined(LIBC_SCCS) && !defined(lint)
13	.asciz "@(#)sigreturn.s	5.1 (Berkeley) 05/12/90"
14#endif /* LIBC_SCCS and not lint */
15
16#include "SYS.h"
17
18/*
19 * We must preserve the state of the registers as the user has set them up.
20 */
21#ifdef PROF
22#undef ENTRY
23#define	ENTRY(x) \
24	.globl _/**/x; .even; _/**/x:; moveml #0xC0C0,sp@-; .data; \
25	PROF/**/x:; .long 0; .text; lea PROF/**/x,a0; jbsr mcount; \
26	moveml sp@+,#0x0303
27#endif PROF
28
29ENTRY(sigreturn)
30	trap	#1		/* signals sigreturn() */
31	jmp	cerror
32