Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copied from arch/arm64/include/asm/hwcap.h |
| 3 | * |
| 4 | * Copyright (C) 2012 ARM Ltd. |
| 5 | * Copyright (C) 2017 SiFive |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | #ifndef __ASM_HWCAP_H |
| 20 | #define __ASM_HWCAP_H |
| 21 | |
| 22 | #include <uapi/asm/hwcap.h> |
| 23 | |
| 24 | #ifndef __ASSEMBLY__ |
| 25 | /* |
| 26 | * This yields a mask that user programs can use to figure out what |
| 27 | * instruction set this cpu supports. |
| 28 | */ |
| 29 | #define ELF_HWCAP (elf_hwcap) |
| 30 | |
| 31 | enum { |
| 32 | CAP_HWCAP = 1, |
| 33 | }; |
| 34 | |
| 35 | extern unsigned long elf_hwcap; |
| 36 | #endif |
| 37 | #endif |