/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * Author: Hanlu Li * Huacai Chen * * Copyright (C) 2020-2021 Loongson Technology Corporation Limited */ #ifndef _ASM_SIGCONTEXT_H #define _ASM_SIGCONTEXT_H #include #include /* scalar FP context was used */ #define USED_FP (1 << 0) /* extended context was used, see struct extcontext for details */ #define USED_EXTCONTEXT (1 << 1) #include /* * Keep this struct definition in sync with the sigcontext fragment * in arch/loongarch/kernel/asm-offsets.c * */ struct sigcontext { __u64 sc_pc; __u64 sc_regs[32]; __u32 sc_flags; __u32 sc_fcsr; __u32 sc_vcsr; __u64 sc_fcc; __u64 sc_scr[4]; union fpureg sc_fpregs[32] FPU_ALIGN; __u8 sc_reserved[4096] __attribute__((__aligned__(16))); }; #endif /* _ASM_SIGCONTEXT_H */