| .. | .. |
|---|
| 9 | 9 | * (at your option) any later version. |
|---|
| 10 | 10 | */ |
|---|
| 11 | 11 | |
|---|
| 12 | | -#ifndef _UAPI_ASM_ELF_H |
|---|
| 13 | | -#define _UAPI_ASM_ELF_H |
|---|
| 12 | +#ifndef _UAPI_ASM_RISCV_ELF_H |
|---|
| 13 | +#define _UAPI_ASM_RISCV_ELF_H |
|---|
| 14 | 14 | |
|---|
| 15 | 15 | #include <asm/ptrace.h> |
|---|
| 16 | 16 | |
|---|
| .. | .. |
|---|
| 19 | 19 | typedef struct user_regs_struct elf_gregset_t; |
|---|
| 20 | 20 | #define ELF_NGREG (sizeof(elf_gregset_t) / sizeof(elf_greg_t)) |
|---|
| 21 | 21 | |
|---|
| 22 | +/* We don't support f without d, or q. */ |
|---|
| 23 | +typedef __u64 elf_fpreg_t; |
|---|
| 22 | 24 | typedef union __riscv_fp_state elf_fpregset_t; |
|---|
| 25 | +#define ELF_NFPREG (sizeof(struct __riscv_d_ext_state) / sizeof(elf_fpreg_t)) |
|---|
| 23 | 26 | |
|---|
| 24 | 27 | #if __riscv_xlen == 64 |
|---|
| 25 | 28 | #define ELF_RISCV_R_SYM(r_info) ELF64_R_SYM(r_info) |
|---|
| .. | .. |
|---|
| 92 | 95 | #define R_RISCV_32_PCREL 57 |
|---|
| 93 | 96 | |
|---|
| 94 | 97 | |
|---|
| 95 | | -#endif /* _UAPI_ASM_ELF_H */ |
|---|
| 98 | +#endif /* _UAPI_ASM_RISCV_ELF_H */ |
|---|