Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / arch / riscv / include / uapi / asm / hwcap.h
1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
2 /*
3  * Copied from arch/arm64/include/asm/hwcap.h
4  *
5  * Copyright (C) 2012 ARM Ltd.
6  * Copyright (C) 2017 SiFive
7  */
8 #ifndef __UAPI_ASM_HWCAP_H
9 #define __UAPI_ASM_HWCAP_H
10
11 /*
12  * Linux saves the floating-point registers according to the ISA Linux is
13  * executing on, as opposed to the ISA the user program is compiled for.  This
14  * is necessary for a handful of esoteric use cases: for example, userpsace
15  * threading libraries must be able to examine the actual machine state in
16  * order to fully reconstruct the state of a thread.
17  */
18 #define COMPAT_HWCAP_ISA_I      (1 << ('I' - 'A'))
19 #define COMPAT_HWCAP_ISA_M      (1 << ('M' - 'A'))
20 #define COMPAT_HWCAP_ISA_A      (1 << ('A' - 'A'))
21 #define COMPAT_HWCAP_ISA_F      (1 << ('F' - 'A'))
22 #define COMPAT_HWCAP_ISA_D      (1 << ('D' - 'A'))
23 #define COMPAT_HWCAP_ISA_C      (1 << ('C' - 'A'))
24
25 #endif