xref: /haiku/headers/posix/arch/ppc/signal.h (revision f75a7bf508f3156d63a14f8fd77c5e0ca4d08c42)
1 /*
2  * Copyright 2002-2007, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _ARCH_SIGNAL_H_
6 #define _ARCH_SIGNAL_H_
7 
8 /*
9  * Architecture-specific structure passed to signal handlers
10  */
11 
12 #if __POWERPC__
13 struct vregs
14 {
15 	ulong pc,                                         /* program counter */
16 	      r0,                                         /* scratch */
17 	      r1,                                         /* stack ptr */
18 	      r2,                                         /* TOC */
19 	      r3,r4,r5,r6,r7,r8,r9,r10,                   /* volatile regs */
20 	      r11,r12;                                    /* scratch regs */
21 
22    double f0,                                         /* fp scratch */
23 	      f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13; /* fp volatile regs */
24 
25 	ulong filler1,                                    /* place holder */
26 	      fpscr,                                      /* fp condition codes */
27 	      ctr, xer, cr, msr, lr;                      /* misc. status */
28 };
29 #endif /* __POWERPC__ */
30 
31 
32 #endif /* _ARCH_SIGNAL_H_ */
33