1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * Author: Hanlu Li <lihanlu@loongson.cn>
4 * Huacai Chen <chenhuacai@loongson.cn>
6 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
8 #ifndef _UAPI_ASM_SIGCONTEXT_H
9 #define _UAPI_ASM_SIGCONTEXT_H
11 #include <linux/types.h>
12 #include <linux/posix_types.h>
14 /* FP context was used */
15 #define SC_USED_FP (1 << 0)
16 /* Address error was due to memory load */
17 #define SC_ADDRERR_RD (1 << 30)
18 /* Address error was due to memory store */
19 #define SC_ADDRERR_WR (1 << 31)
25 __u64 sc_extcontext[0] __attribute__((__aligned__(16)));
28 #define CONTEXT_INFO_ALIGN 16
32 __u64 padding; /* padding to 16 bytes */
36 #define FPU_CTX_MAGIC 0x46505501
37 #define FPU_CTX_ALIGN 8
45 #define LSX_CTX_MAGIC 0x53580001
46 #define LSX_CTX_ALIGN 16
54 #define LASX_CTX_MAGIC 0x41535801
55 #define LASX_CTX_ALIGN 32
63 #define LBT_CTX_MAGIC 0x42540001
64 #define LBT_CTX_ALIGN 8
72 #endif /* _UAPI_ASM_SIGCONTEXT_H */