Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 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 Hughes | 5e7f8f1 | 2022-10-01 15:10:58 +0000 | [diff] [blame] | 7 | #ifndef _UAPI_ASM_RISCV_SIGCONTEXT_H |
| 8 | #define _UAPI_ASM_RISCV_SIGCONTEXT_H |
| 9 | #include <asm/ptrace.h> |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 10 | #define RISCV_V_MAGIC 0x53465457 |
| 11 | #define END_MAGIC 0x0 |
| 12 | #define END_HDR_SIZE 0x0 |
| 13 | #ifndef __ASSEMBLY__ |
| 14 | struct __sc_riscv_v_state { |
| 15 | struct __riscv_v_ext_state v_state; |
| 16 | } __attribute__((aligned(16))); |
Elliott Hughes | 5e7f8f1 | 2022-10-01 15:10:58 +0000 | [diff] [blame] | 17 | struct sigcontext { |
| 18 | struct user_regs_struct sc_regs; |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 19 | union { |
| 20 | union __riscv_fp_state sc_fpregs; |
| 21 | struct __riscv_extra_ext_header sc_extdesc; |
| 22 | }; |
Elliott Hughes | 5e7f8f1 | 2022-10-01 15:10:58 +0000 | [diff] [blame] | 23 | }; |
| 24 | #endif |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 25 | #endif |