zig/lib/libc/include/loongarch64-linux-musl/bits/user.h
Andrew Kelley 85a46ee520 update musl headers to v1.2.5
adds loongarch64 and riscv32
2024-06-04 16:54:11 -07:00

24 lines
No EOL
458 B
C
Vendored

#define ELF_NGREG 45
#define ELF_NFPREG 34
struct user_regs_struct {
unsigned long regs[32];
unsigned long orig_a0;
unsigned long csr_era;
unsigned long csr_badv;
unsigned long reserved[10];
};
struct user_fp_struct {
unsigned long fpr[32];
unsigned long fcc;
unsigned int fcsr;
};
typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
typedef union {
double d;
float f;
} elf_fpreg_t;
typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];