Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/elf.h
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | |||||
#define HWCAP2_SVEF64MM 0x00000800 | #define HWCAP2_SVEF64MM 0x00000800 | ||||
#define HWCAP2_SVEBF16 0x00001000 | #define HWCAP2_SVEBF16 0x00001000 | ||||
#define HWCAP2_I8MM 0x00002000 | #define HWCAP2_I8MM 0x00002000 | ||||
#define HWCAP2_BF16 0x00004000 | #define HWCAP2_BF16 0x00004000 | ||||
#define HWCAP2_DGH 0x00008000 | #define HWCAP2_DGH 0x00008000 | ||||
#define HWCAP2_RNG 0x00010000 | #define HWCAP2_RNG 0x00010000 | ||||
#define HWCAP2_BTI 0x00020000 | #define HWCAP2_BTI 0x00020000 | ||||
#ifdef COMPAT_FREEBSD32 | |||||
jhb: This does raise the issue, btw, that 'cc -m32' probably doesn't work today on aarch64. For… | |||||
Not Done Inline ActionsWe decided a long time ago that we didn't care about that. manu: We decided a long time ago that we didn't care about that.
COMPAT32 is useful for poudriere… | |||||
/* ARM HWCAP */ | |||||
Done Inline ActionsThese comments should be changed to reflect ARMv8 reality. mmel: These comments should be changed to reflect ARMv8 reality. | |||||
#define HWCAP32_HALF 0x00000002 /* Always set. */ | |||||
#define HWCAP32_THUMB 0x00000004 /* Always set. */ | |||||
#define HWCAP32_FAST_MULT 0x00000010 /* Always set. */ | |||||
#define HWCAP32_VFP 0x00000040 | |||||
#define HWCAP32_EDSP 0x00000080 /* Always set. */ | |||||
#define HWCAP32_NEON 0x00001000 | |||||
#define HWCAP32_VFPv3 0x00002000 | |||||
#define HWCAP32_TLS 0x00008000 /* Always set. */ | |||||
#define HWCAP32_VFPv4 0x00010000 | |||||
#define HWCAP32_IDIVA 0x00020000 /* Always set. */ | |||||
#define HWCAP32_IDIVT 0x00040000 /* Always set. */ | |||||
#define HWCAP32_VFPD32 0x00080000 /* Always set. */ | |||||
#define HWCAP32_LPAE 0x00100000 /* Always set. */ | |||||
#define HWCAP32_DEFAULT \ | |||||
(HWCAP32_HALF | HWCAP32_THUMB | HWCAP32_FAST_MULT | HWCAP32_EDSP |\ | |||||
HWCAP32_TLS | HWCAP32_IDIVA | HWCAP32_IDIVT | HWCAP32_VFPD32 | \ | |||||
HWCAP32_LPAE) | |||||
/* ARM HWCAP2 */ | |||||
#define HWCAP32_2_AES 0x00000001 | |||||
#define HWCAP32_2_PMULL 0x00000002 | |||||
#define HWCAP32_2_SHA1 0x00000004 | |||||
#define HWCAP32_2_SHA2 0x00000008 | |||||
#define HWCAP32_2_CRC32 0x00000010 | |||||
#endif | |||||
#endif /* !_MACHINE_ELF_H_ */ | #endif /* !_MACHINE_ELF_H_ */ |
This does raise the issue, btw, that 'cc -m32' probably doesn't work today on aarch64. For that to work, we'd need to merge the MD headers the way sys/x86/include works. However, we can tell people to setup a armv7 chroot and use --sysroot to point to that along with -m32 as a workaround. If we really care about freebsd32 on aarch64 we should figure out a solution for /usr/include/machine to support both eventually.