xref: /haiku/headers/posix/arch/x86_64/signal.h (revision 4fd62caa9acc437534c41bbb7d3fc9d53e915005)
1 /*
2  * Copyright 2002-2012 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 /*
10  * Architecture-specific structure passed to signal handlers
11  */
12 
13 #if __x86_64__
14 
15 struct vregs {
16 	unsigned long			rax;	/* gp regs */
17 	unsigned long			rdx;
18 	unsigned long			rcx;
19 	unsigned long			rbx;
20 	unsigned long			rsi;
21 	unsigned long			rdi;
22 	unsigned long			rbp;
23 	unsigned long			rsp;
24 
25 	unsigned long			r8;	/* egp regs */
26 	unsigned long			r9;
27 	unsigned long			r10;
28 	unsigned long			r11;
29 	unsigned long			r12;
30 	unsigned long			r13;
31 	unsigned long			r14;
32 	unsigned long			r15;
33 
34 	unsigned long			rip;
35 
36 /*TODO:	add
37 *	Floatpoint
38 *	MMX
39 *	SSE
40 */
41 
42 };
43 
44 #endif /* __x86_64__ */
45 
46 #endif /* _ARCH_SIGNAL_H_ */
47