Changeset View
Changeset View
Standalone View
Standalone View
head/sys/riscv/include/elf.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
#define ELF_TARG_CLASS ELFCLASS64 | #define ELF_TARG_CLASS ELFCLASS64 | ||||
#define ELF_TARG_DATA ELFDATA2LSB | #define ELF_TARG_DATA ELFDATA2LSB | ||||
#define ELF_TARG_MACH EM_RISCV | #define ELF_TARG_MACH EM_RISCV | ||||
#define ELF_TARG_VER 1 | #define ELF_TARG_VER 1 | ||||
/* TODO: set correct value */ | /* TODO: set correct value */ | ||||
#define ET_DYN_LOAD_ADDR 0x100000 | #define ET_DYN_LOAD_ADDR 0x100000 | ||||
/* Flags passed in AT_HWCAP */ | |||||
#define HWCAP_ISA_BIT(c) (1 << ((c) - 'A')) | |||||
#define HWCAP_ISA_I HWCAP_ISA_BIT('I') | |||||
#define HWCAP_ISA_M HWCAP_ISA_BIT('M') | |||||
#define HWCAP_ISA_A HWCAP_ISA_BIT('A') | |||||
#define HWCAP_ISA_F HWCAP_ISA_BIT('F') | |||||
#define HWCAP_ISA_D HWCAP_ISA_BIT('D') | |||||
#define HWCAP_ISA_C HWCAP_ISA_BIT('C') | |||||
#define HWCAP_ISA_G \ | |||||
(HWCAP_ISA_I | HWCAP_ISA_M | HWCAP_ISA_A | HWCAP_ISA_F | HWCAP_ISA_D) | |||||
#endif /* !_MACHINE_ELF_H_ */ | #endif /* !_MACHINE_ELF_H_ */ |