blob: da827113407c61bc59bd757c4c0334e91ad45983 [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_ASM_SIGCONTEXT_H
20#define _UAPI_ASM_SIGCONTEXT_H
21#include <linux/types.h>
22#include <asm/sgidefs.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080023#define USED_FP (1 << 0)
24#define USED_FR1 (1 << 1)
25#define USED_HYBRID_FPRS (1 << 2)
26#define USED_EXTCONTEXT (1 << 3)
Elliott Hughesabd62612013-11-08 11:45:48 -080027#if _MIPS_SIM == _MIPS_SIM_ABI32
28struct sigcontext {
Tao Baod7db5942015-01-28 10:07:51 -080029 unsigned int sc_regmask;
30 unsigned int sc_status;
Tao Baod7db5942015-01-28 10:07:51 -080031 unsigned long long sc_pc;
32 unsigned long long sc_regs[32];
33 unsigned long long sc_fpregs[32];
34 unsigned int sc_acx;
Tao Baod7db5942015-01-28 10:07:51 -080035 unsigned int sc_fpc_csr;
36 unsigned int sc_fpc_eir;
37 unsigned int sc_used_math;
38 unsigned int sc_dsp;
Tao Baod7db5942015-01-28 10:07:51 -080039 unsigned long long sc_mdhi;
40 unsigned long long sc_mdlo;
41 unsigned long sc_hi1;
42 unsigned long sc_lo1;
Tao Baod7db5942015-01-28 10:07:51 -080043 unsigned long sc_hi2;
44 unsigned long sc_lo2;
45 unsigned long sc_hi3;
46 unsigned long sc_lo3;
Elliott Hughesabd62612013-11-08 11:45:48 -080047};
48#endif
49#if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
50#include <linux/posix_types.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080051struct sigcontext {
Tao Baod7db5942015-01-28 10:07:51 -080052 __u64 sc_regs[32];
53 __u64 sc_fpregs[32];
54 __u64 sc_mdhi;
Tao Baod7db5942015-01-28 10:07:51 -080055 __u64 sc_hi1;
56 __u64 sc_hi2;
57 __u64 sc_hi3;
58 __u64 sc_mdlo;
Tao Baod7db5942015-01-28 10:07:51 -080059 __u64 sc_lo1;
60 __u64 sc_lo2;
61 __u64 sc_lo3;
62 __u64 sc_pc;
Tao Baod7db5942015-01-28 10:07:51 -080063 __u32 sc_fpc_csr;
64 __u32 sc_used_math;
65 __u32 sc_dsp;
66 __u32 sc_reserved;
Elliott Hughesabd62612013-11-08 11:45:48 -080067};
68#endif
69#endif