xref: /aosp_15_r20/external/musl/arch/loongarch64/bits/user.h (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1 #define ELF_NGREG    45
2 #define ELF_NFPREG   34
3 
4 struct user_regs_struct {
5 	unsigned long regs[32];
6 	unsigned long orig_a0;
7 	unsigned long csr_era;
8 	unsigned long csr_badv;
9 	unsigned long reserved[10];
10 };
11 
12 struct user_fp_struct {
13 	unsigned long fpr[32];
14 	unsigned long fcc;
15 	unsigned int fcsr;
16 };
17 
18 typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
19 
20 typedef union {
21 	double d;
22 	float f;
23 } elf_fpreg_t;
24 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
25