PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/unicore32/include/asm/hwcap.h

http://github.com/mirrors/linux
C Header | 29 lines | 11 code | 3 blank | 15 comment | 1 complexity | b2a1ea0d59fcbc58d1fd2eec6349d555 MD5 | raw file
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * linux/arch/unicore32/include/asm/hwcap.h
 4 *
 5 * Code specific to PKUnity SoC and UniCore ISA
 6 *
 7 * Copyright (C) 2001-2010 GUAN Xue-tao
 8 */
 9#ifndef __UNICORE_HWCAP_H__
10#define __UNICORE_HWCAP_H__
11
12/*
13 * HWCAP flags
14 */
15#define HWCAP_MSP		1
16#define HWCAP_UNICORE16		2
17#define HWCAP_CMOV		4
18#define HWCAP_UNICORE_F64       8
19#define HWCAP_TLS		0x80
20
21#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
22/*
23 * This yields a mask that user programs can use to figure out what
24 * instruction set this cpu supports.
25 */
26#define ELF_HWCAP		(HWCAP_CMOV | HWCAP_UNICORE_F64)
27#endif
28
29#endif