Path: blob/master/arch/riscv/include/uapi/asm/sigcontext.h
26513 views
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */1/*2* Copyright (C) 2012 Regents of the University of California3*/45#ifndef _UAPI_ASM_RISCV_SIGCONTEXT_H6#define _UAPI_ASM_RISCV_SIGCONTEXT_H78#include <asm/ptrace.h>910/* The Magic number for signal context frame header. */11#define RISCV_V_MAGIC 0x5346545712#define END_MAGIC 0x01314/* The size of END signal context header. */15#define END_HDR_SIZE 0x01617#ifndef __ASSEMBLY__1819struct __sc_riscv_v_state {20struct __riscv_v_ext_state v_state;21} __attribute__((aligned(16)));2223/*24* Signal context structure25*26* This contains the context saved before a signal handler is invoked;27* it is restored by sys_rt_sigreturn.28*/29struct sigcontext {30struct user_regs_struct sc_regs;31union {32union __riscv_fp_state sc_fpregs;33struct __riscv_extra_ext_header sc_extdesc;34};35};3637#endif /*!__ASSEMBLY__*/3839#endif /* _UAPI_ASM_RISCV_SIGCONTEXT_H */404142