Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/include/elf.h
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
#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 */ | /* Flags passed in AT_HWCAP */ | ||||
#define HWCAP_ISA_BIT(c) (1 << ((c) - 'A')) | #define HWCAP_ISA_BIT(c) (1 << ((c) - 'a')) | ||||
#define HWCAP_ISA_I HWCAP_ISA_BIT('I') | #define HWCAP_ISA_I HWCAP_ISA_BIT('i') | ||||
#define HWCAP_ISA_M HWCAP_ISA_BIT('M') | #define HWCAP_ISA_M HWCAP_ISA_BIT('m') | ||||
#define HWCAP_ISA_A HWCAP_ISA_BIT('A') | #define HWCAP_ISA_A HWCAP_ISA_BIT('a') | ||||
#define HWCAP_ISA_F HWCAP_ISA_BIT('F') | #define HWCAP_ISA_F HWCAP_ISA_BIT('f') | ||||
#define HWCAP_ISA_D HWCAP_ISA_BIT('D') | #define HWCAP_ISA_D HWCAP_ISA_BIT('d') | ||||
#define HWCAP_ISA_C HWCAP_ISA_BIT('C') | #define HWCAP_ISA_C HWCAP_ISA_BIT('c') | ||||
#define HWCAP_ISA_G \ | #define HWCAP_ISA_G \ | ||||
(HWCAP_ISA_I | HWCAP_ISA_M | HWCAP_ISA_A | HWCAP_ISA_F | HWCAP_ISA_D) | (HWCAP_ISA_I | HWCAP_ISA_M | HWCAP_ISA_A | HWCAP_ISA_F | HWCAP_ISA_D) | ||||
#endif /* !_MACHINE_ELF_H_ */ | #endif /* !_MACHINE_ELF_H_ */ |