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 * 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 8.1 (Berkeley) 06/04/93" 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#ifdef __STDC__ 24#if __GNUC__ >= 2 25#define ENTRY(x) \ 26 .globl _ ## x; .even; _ ## x:; moveml \#0xC0C0,sp@-; .data; \ 27 PROF ## x:; .long 0; .text; lea PROF ## x,a0; jbsr mcount; \ 28 moveml sp@+,\#0x0303 29#else 30#define ENTRY(x) \ 31 .globl _ ## x; .even; _ ## x:; moveml #0xC0C0,sp@-; .data; \ 32 PROF ## x:; .long 0; .text; lea PROF ## x,a0; jbsr mcount; \ 33 moveml sp@+,#0x0303 34#endif 35#else 36#define ENTRY(x) \ 37 .globl _/**/x; .even; _/**/x:; moveml #0xC0C0,sp@-; .data; \ 38 PROF/**/x:; .long 0; .text; lea PROF/**/x,a0; jbsr mcount; \ 39 moveml sp@+,#0x0303 40#endif 41#endif 42 43ENTRY(sigreturn) 44 trap #1 /* signals sigreturn() */ 45 jmp cerror 46