Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v4.17 37 lines 1.0 kB view raw
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 31enum { 32 CAP_HWCAP = 1, 33}; 34 35extern unsigned long elf_hwcap; 36#endif 37#endif