blob: 3394269fc91676c20d170d3e2f246213b5c7a68e [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Elliott Hughes5e7f8f12022-10-01 15:10:58 +00007#ifndef _UAPI_ASM_RISCV_SIGCONTEXT_H
8#define _UAPI_ASM_RISCV_SIGCONTEXT_H
9#include <asm/ptrace.h>
Christopher Ferris8666d042023-09-06 14:55:31 -070010#define RISCV_V_MAGIC 0x53465457
11#define END_MAGIC 0x0
12#define END_HDR_SIZE 0x0
13#ifndef __ASSEMBLY__
14struct __sc_riscv_v_state {
15 struct __riscv_v_ext_state v_state;
16} __attribute__((aligned(16)));
Elliott Hughes5e7f8f12022-10-01 15:10:58 +000017struct sigcontext {
18 struct user_regs_struct sc_regs;
Christopher Ferris8666d042023-09-06 14:55:31 -070019 union {
20 union __riscv_fp_state sc_fpregs;
21 struct __riscv_extra_ext_header sc_extdesc;
22 };
Elliott Hughes5e7f8f12022-10-01 15:10:58 +000023};
24#endif
Christopher Ferris8666d042023-09-06 14:55:31 -070025#endif