auxvec.h 1.2 KB

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