xref: /haiku/headers/posix/arch/riscv64/signal.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2018-2019 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 // TODO: gcc7's RISCV doesn't seem real keen on identifying 32 vs 64 yet.
14 #if defined(__RISCV64__) || defined(__RISCV__)
15 struct vregs {
16 	ulong x[31];
17 	ulong pc;
18 	double f[32];
19 	char fcsr;
20 };
21 #endif /* defined(__RISCV64__) */
22 
23 
24 #endif /* _ARCH_SIGNAL_H_ */
25