xref: /OK3568_Linux_fs/kernel/arch/riscv/include/uapi/asm/auxvec.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 2012 ARM Ltd.
4*4882a593Smuzhiyun  * Copyright (C) 2015 Regents of the University of California
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #ifndef _UAPI_ASM_RISCV_AUXVEC_H
8*4882a593Smuzhiyun #define _UAPI_ASM_RISCV_AUXVEC_H
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun /* vDSO location */
11*4882a593Smuzhiyun #define AT_SYSINFO_EHDR 33
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun /*
14*4882a593Smuzhiyun  * The set of entries below represent more extensive information
15*4882a593Smuzhiyun  * about the caches, in the form of two entry per cache type,
16*4882a593Smuzhiyun  * one entry containing the cache size in bytes, and the other
17*4882a593Smuzhiyun  * containing the cache line size in bytes in the bottom 16 bits
18*4882a593Smuzhiyun  * and the cache associativity in the next 16 bits.
19*4882a593Smuzhiyun  *
20*4882a593Smuzhiyun  * The associativity is such that if N is the 16-bit value, the
21*4882a593Smuzhiyun  * cache is N way set associative. A value if 0xffff means fully
22*4882a593Smuzhiyun  * associative, a value of 1 means directly mapped.
23*4882a593Smuzhiyun  *
24*4882a593Smuzhiyun  * For all these fields, a value of 0 means that the information
25*4882a593Smuzhiyun  * is not known.
26*4882a593Smuzhiyun  */
27*4882a593Smuzhiyun #define AT_L1I_CACHESIZE	40
28*4882a593Smuzhiyun #define AT_L1I_CACHEGEOMETRY	41
29*4882a593Smuzhiyun #define AT_L1D_CACHESIZE	42
30*4882a593Smuzhiyun #define AT_L1D_CACHEGEOMETRY	43
31*4882a593Smuzhiyun #define AT_L2_CACHESIZE		44
32*4882a593Smuzhiyun #define AT_L2_CACHEGEOMETRY	45
33*4882a593Smuzhiyun 
34*4882a593Smuzhiyun /* entries in ARCH_DLINFO */
35*4882a593Smuzhiyun #define AT_VECTOR_SIZE_ARCH	7
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun #endif /* _UAPI_ASM_RISCV_AUXVEC_H */
38