hwcap.h 509 字节
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0-only */
2 3 4 5 6 7
/*
 * Copied from arch/arm64/include/asm/hwcap.h
 *
 * Copyright (C) 2012 ARM Ltd.
 * Copyright (C) 2017 SiFive
 */
8 9
#ifndef _ASM_RISCV_HWCAP_H
#define _ASM_RISCV_HWCAP_H
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

#include <uapi/asm/hwcap.h>

#ifndef __ASSEMBLY__
/*
 * This yields a mask that user programs can use to figure out what
 * instruction set this cpu supports.
 */
#define ELF_HWCAP		(elf_hwcap)

enum {
	CAP_HWCAP = 1,
};

extern unsigned long elf_hwcap;
#endif
26 27

#endif /* _ASM_RISCV_HWCAP_H */