Masahiro Yamada | d9c5252 | 2019-07-25 16:58:31 +0900 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ |
Palmer Dabbelt | e2c0cdf | 2017-07-10 18:07:09 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copied from arch/arm64/include/asm/hwcap.h |
| 4 | * |
| 5 | * Copyright (C) 2012 ARM Ltd. |
| 6 | * Copyright (C) 2017 SiFive |
Palmer Dabbelt | e2c0cdf | 2017-07-10 18:07:09 -0700 | [diff] [blame] | 7 | */ |
Zong Li | 6b57ba8 | 2019-10-28 00:42:47 -0700 | [diff] [blame] | 8 | #ifndef _UAPI_ASM_RISCV_HWCAP_H |
| 9 | #define _UAPI_ASM_RISCV_HWCAP_H |
Palmer Dabbelt | e2c0cdf | 2017-07-10 18:07:09 -0700 | [diff] [blame] | 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 |
Tobias Klauser | 08b5985 | 2020-07-03 15:49:11 +0200 | [diff] [blame] | 14 | * is necessary for a handful of esoteric use cases: for example, userspace |
Palmer Dabbelt | e2c0cdf | 2017-07-10 18:07:09 -0700 | [diff] [blame] | 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 | |
Zong Li | 6b57ba8 | 2019-10-28 00:42:47 -0700 | [diff] [blame] | 25 | #endif /* _UAPI_ASM_RISCV_HWCAP_H */ |