Skip to content

Commit

Permalink
s390/hwcaps: Add documentation for HWCAP flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Alexander Gordeev committed Jul 2, 2024
1 parent 02ee149 commit 5f95843
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/s390/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@
/* 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,
Expand Down

0 comments on commit 5f95843

Please sign in to comment.