]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/hwcaps: Add documentation for HWCAP flags
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 28 Jun 2024 08:35:24 +0000 (10:35 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 2 Jul 2024 08:17:16 +0000 (10:17 +0200)
Describe that some HWCAP bits are reserved to avoid that they will be
used by accident.

Suggested-by: Stefan Liebler <stli@linux.ibm.com>
Reviewed-by: Stefan Liebler <stli@linux.ibm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/elf.h

index 70a30ae258b7e6f9ead9ebc06c8e4b7efae06f21..8f2c23cc52b61ba2584bf1ce56f10c3bf38c03eb 100644 (file)
 /* Keep this the last entry.  */
 #define R_390_NUM      61
 
+/*
+ * HWCAP flags - for AT_HWCAP
+ *
+ * Bits 32-63 are reserved for use by libc.
+ * Bit 31 is reserved and will be used by libc to determine if a second
+ * argument is passed to IFUNC resolvers. This will be implemented when
+ * there is a need for AT_HWCAP2.
+ */
 enum {
        HWCAP_NR_ESAN3          = 0,
        HWCAP_NR_ZARCH          = 1,