ls1x-loongson-gnu-toolchain.../sysroot/usr/include/asm/sigcontext.h
2024-11-27 15:46:37 +08:00

41 lines
921 B
C

/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
/*
* Author: Hanlu Li <lihanlu@loongson.cn>
* Huacai Chen <chenhuacai@loongson.cn>
*
* Copyright (C) 2020-2021 Loongson Technology Corporation Limited
*/
#ifndef _ASM_SIGCONTEXT_H
#define _ASM_SIGCONTEXT_H
#include <linux/types.h>
#include <asm/processor.h>
/* 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 <linux/posix_types.h>
/*
* 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 */