blob: bf004355febf89982f0bb1de2877809833b5da39 [file] [log] [blame]
Elliott Hughes5e7f8f12022-10-01 15:10:58 +00001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_ASM_RISCV_SIGCONTEXT_H
20#define _UAPI_ASM_RISCV_SIGCONTEXT_H
21#include <asm/ptrace.h>
Christopher Ferris8666d042023-09-06 14:55:31 -070022#define RISCV_V_MAGIC 0x53465457
23#define END_MAGIC 0x0
24#define END_HDR_SIZE 0x0
25#ifndef __ASSEMBLY__
26struct __sc_riscv_v_state {
27 struct __riscv_v_ext_state v_state;
28} __attribute__((aligned(16)));
Elliott Hughes5e7f8f12022-10-01 15:10:58 +000029struct sigcontext {
30 struct user_regs_struct sc_regs;
Christopher Ferris8666d042023-09-06 14:55:31 -070031 union {
32 union __riscv_fp_state sc_fpregs;
33 struct __riscv_extra_ext_header sc_extdesc;
34 };
Elliott Hughes5e7f8f12022-10-01 15:10:58 +000035};
36#endif
Christopher Ferris8666d042023-09-06 14:55:31 -070037#endif