mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
In order for userland to determine whether various features are safe to use, it will need to know both that the hardware supports those features and that the kernel is recent enough & configured appropriately to support them. For example under the O32 modeless FP proposal the dynamic linker & ifunc resolvers will need this information. The kernel is the only thing in a position to know availability accurately, so the kernel needs to provide the information to userland. This patch introduces the infrastructure to provide the AT_HWCAP aux vector to userland in order to provide that information. It also defines the 2 currently specified flags, which indicate MIPSr6 & MSA support. Signed-off-by: Paul Burton <[email protected]> Cc: [email protected] Cc: Guenter Roeck <[email protected]> Cc: Matthew Fortune <[email protected]> Cc: Kees Cook <[email protected]> Cc: Huacai Chen <[email protected]> Cc: Maciej W. Rozycki <[email protected]> Cc: Alex Smith <[email protected]> Cc: [email protected] Cc: Leonid Yegoshin <[email protected]> Cc: Markos Chandras <[email protected]> Cc: Ingo Molnar <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/10797/ Signed-off-by: Ralf Baechle <[email protected]>
9 lines
168 B
C
9 lines
168 B
C
#ifndef _UAPI_ASM_HWCAP_H
|
|
#define _UAPI_ASM_HWCAP_H
|
|
|
|
/* HWCAP flags */
|
|
#define HWCAP_MIPS_R6 (1 << 0)
|
|
#define HWCAP_MIPS_MSA (1 << 1)
|
|
|
|
#endif /* _UAPI_ASM_HWCAP_H */
|