2019-02-16 19:42:34 -06:00
|
|
|
/*
|
|
|
|
* Copyright 2018-2019 Haiku, Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2021-01-29 21:37:06 +01:00
|
|
|
#ifndef _ARCH_RISCV64_SIGNAL_H_
|
|
|
|
#define _ARCH_RISCV64_SIGNAL_H_
|
2019-02-16 19:42:34 -06:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Architecture-specific structure passed to signal handlers
|
|
|
|
*/
|
|
|
|
|
2022-01-11 14:03:04 -06:00
|
|
|
#if (defined(__riscv) && __riscv_xlen == 64)
|
2019-02-16 19:42:34 -06:00
|
|
|
struct vregs {
|
|
|
|
ulong x[31];
|
|
|
|
ulong pc;
|
|
|
|
double f[32];
|
2021-06-06 22:15:18 +09:00
|
|
|
ulong fcsr;
|
2019-02-16 19:42:34 -06:00
|
|
|
};
|
2022-01-11 14:03:04 -06:00
|
|
|
#endif /* (defined(__riscv) && __riscv_xlen == 64) */
|
2019-02-16 19:42:34 -06:00
|
|
|
|
|
|
|
|
2021-01-29 21:37:06 +01:00
|
|
|
#endif /* _ARCH_RISCV64_SIGNAL_H_ */
|