Path: blob/master/arch/loongarch/include/uapi/asm/sigcontext.h
26512 views
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */1/*2* Author: Hanlu Li <[email protected]>3* Huacai Chen <[email protected]>4*5* Copyright (C) 2020-2022 Loongson Technology Corporation Limited6*/7#ifndef _UAPI_ASM_SIGCONTEXT_H8#define _UAPI_ASM_SIGCONTEXT_H910#include <linux/types.h>1112/* FP context was used */13#define SC_USED_FP (1 << 0)14/* Address error was due to memory load */15#define SC_ADDRERR_RD (1 << 30)16/* Address error was due to memory store */17#define SC_ADDRERR_WR (1 << 31)1819struct sigcontext {20__u64 sc_pc;21__u64 sc_regs[32];22__u32 sc_flags;23__u64 sc_extcontext[0] __attribute__((__aligned__(16)));24};2526#define CONTEXT_INFO_ALIGN 1627struct sctx_info {28__u32 magic;29__u32 size;30__u64 padding; /* padding to 16 bytes */31};3233/* FPU context */34#define FPU_CTX_MAGIC 0x4650550135#define FPU_CTX_ALIGN 836struct fpu_context {37__u64 regs[32];38__u64 fcc;39__u32 fcsr;40};4142/* LSX context */43#define LSX_CTX_MAGIC 0x5358000144#define LSX_CTX_ALIGN 1645struct lsx_context {46__u64 regs[2*32];47__u64 fcc;48__u32 fcsr;49};5051/* LASX context */52#define LASX_CTX_MAGIC 0x4153580153#define LASX_CTX_ALIGN 3254struct lasx_context {55__u64 regs[4*32];56__u64 fcc;57__u32 fcsr;58};5960/* LBT context */61#define LBT_CTX_MAGIC 0x4254000162#define LBT_CTX_ALIGN 863struct lbt_context {64__u64 regs[4];65__u32 eflags;66__u32 ftop;67};686970#endif /* _UAPI_ASM_SIGCONTEXT_H */717273