xref: /freebsd/sys/powerpc/include/ucontext.h (revision dfeade78eb6f2672fc92b6643cd802855b2e30ed)
1fb75554eSBenno Rice /*
2fb75554eSBenno Rice  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3fb75554eSBenno Rice  * Copyright (C) 1995, 1996 TooLs GmbH.
4fb75554eSBenno Rice  * All rights reserved.
5fb75554eSBenno Rice  *
6fb75554eSBenno Rice  * Redistribution and use in source and binary forms, with or without
7fb75554eSBenno Rice  * modification, are permitted provided that the following conditions
8fb75554eSBenno Rice  * are met:
9fb75554eSBenno Rice  * 1. Redistributions of source code must retain the above copyright
10fb75554eSBenno Rice  *    notice, this list of conditions and the following disclaimer.
11fb75554eSBenno Rice  * 2. Redistributions in binary form must reproduce the above copyright
12fb75554eSBenno Rice  *    notice, this list of conditions and the following disclaimer in the
13fb75554eSBenno Rice  *    documentation and/or other materials provided with the distribution.
14fb75554eSBenno Rice  * 3. All advertising materials mentioning features or use of this software
15fb75554eSBenno Rice  *    must display the following acknowledgement:
16fb75554eSBenno Rice  *	This product includes software developed by TooLs GmbH.
17fb75554eSBenno Rice  * 4. The name of TooLs GmbH may not be used to endorse or promote products
18fb75554eSBenno Rice  *    derived from this software without specific prior written permission.
19fb75554eSBenno Rice  *
20fb75554eSBenno Rice  * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
21fb75554eSBenno Rice  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22fb75554eSBenno Rice  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23fb75554eSBenno Rice  * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24fb75554eSBenno Rice  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25fb75554eSBenno Rice  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26fb75554eSBenno Rice  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27fb75554eSBenno Rice  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28fb75554eSBenno Rice  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29fb75554eSBenno Rice  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30dfeade78SDavid E. O'Brien  *
31dfeade78SDavid E. O'Brien  * $NetBSD: signal.h,v 1.4 1998/09/14 02:48:34 thorpej Exp $
32dfeade78SDavid E. O'Brien  * $FreeBSD$
33fb75554eSBenno Rice  */
34dfeade78SDavid E. O'Brien 
35fb75554eSBenno Rice #ifndef	_MACHINE_UCONTEXT_H_
36fb75554eSBenno Rice #define	_MACHINE_UCONTEXT_H_
37fb75554eSBenno Rice 
38fb75554eSBenno Rice #include <machine/frame.h>
39fb75554eSBenno Rice 
40fb75554eSBenno Rice 
41fb75554eSBenno Rice typedef struct __mcontext {
42fb75554eSBenno Rice 	int mc_onstack;			/* saved onstack flag */
43fb75554eSBenno Rice 	struct trapframe mc_frame;	/* saved registers */
44fb75554eSBenno Rice } mcontext_t;
45fb75554eSBenno Rice 
46fb75554eSBenno Rice #endif	/* !_MACHINE_UCONTEXT_H_ */
47