1 /*
2 * Copyright (c) 2001 David O'Brien.
3 * Copyright (c) 1994-1996 Mark Brinicombe.
4 * Copyright (c) 1994 Brini.
5 * All rights reserved.
6 *
7 * This code is derived from software written for Brini by Mark Brinicombe
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. All advertising materials mentioning features or use of this software
18 * must display the following acknowledgement:
19 * This product includes software developed by Brini.
20 * 4. The name of the company nor the name of the author may be used to
21 * endorse or promote products derived from this software without specific
22 * prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED
25 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27 * IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
28 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * RiscBSD kernel project
37 *
38 * signal.h
39 *
40 * Architecture dependant signal types and structures
41 *
42 * Created : 30/09/94
43 *
44 * $NetBSD: signal.h,v 1.8 1998/09/14 02:48:33 thorpej Exp $
45 * $FreeBSD: releng/5.0/sys/arm/include/ucontext.h 87575 2001-12-09 19:39:49Z obrien $
46 */
47
48 #ifndef _MACHINE_UCONTEXT_H_
49 #define _MACHINE_UCONTEXT_H_
50
51 typedef struct __mcontext {
52 /*
53 * The first 20 fields must match the definition of
54 * sigcontext. So that we can support sigcontext
55 * and ucontext_t at the same time.
56 */
57 unsigned int mc_onstack; /* XXX - sigcontext compat. */
58 unsigned int mc_spsr;
59 unsigned int mc_r0;
60 unsigned int mc_r1;
61 unsigned int mc_r2;
62 unsigned int mc_r3;
63 unsigned int mc_r4;
64 unsigned int mc_r5;
65 unsigned int mc_r6;
66 unsigned int mc_r7;
67 unsigned int mc_r8;
68 unsigned int mc_r9;
69 unsigned int mc_r10;
70 unsigned int mc_r11;
71 unsigned int mc_r12;
72 unsigned int mc_usr_sp;
73 unsigned int mc_usr_lr;
74 unsigned int mc_svc_lr;
75 unsigned int mc_pc;
76
77 unsigned int __spare__[1]; /* XXX fix the size later */
78 } mcontext_t;
79
80 #endif /* !_MACHINE_UCONTEXT_H_ */
Cache object: d0bc1396ef8dc2ac9b9bbf89078570d0
|