auxvec_powerpc.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_POWERPC_AUXVEC_H
  3. #define _ASM_POWERPC_AUXVEC_H
  4. /*
  5. * We need to put in some extra aux table entries to tell glibc what
  6. * the cache block size is, so it can use the dcbz instruction safely.
  7. */
  8. #define AT_DCACHEBSIZE 19
  9. #define AT_ICACHEBSIZE 20
  10. #define AT_UCACHEBSIZE 21
  11. /* A special ignored type value for PPC, for glibc compatibility. */
  12. #define AT_IGNOREPPC 22
  13. /* The vDSO location. We have to use the same value as x86 for glibc's
  14. * sake :-)
  15. */
  16. #define AT_SYSINFO_EHDR 33
  17. /*
  18. * AT_*CACHEBSIZE above represent the cache *block* size which is
  19. * the size that is affected by the cache management instructions.
  20. *
  21. * It doesn't nececssarily matches the cache *line* size which is
  22. * more of a performance tuning hint. Additionally the latter can
  23. * be different for the different cache levels.
  24. *
  25. * The set of entries below represent more extensive information
  26. * about the caches, in the form of two entry per cache type,
  27. * one entry containing the cache size in bytes, and the other
  28. * containing the cache line size in bytes in the bottom 16 bits
  29. * and the cache associativity in the next 16 bits.
  30. *
  31. * The associativity is such that if N is the 16-bit value, the
  32. * cache is N way set associative. A value if 0xffff means fully
  33. * associative, a value of 1 means directly mapped.
  34. *
  35. * For all these fields, a value of 0 means that the information
  36. * is not known.
  37. */
  38. #define AT_L1I_CACHESIZE 40
  39. #define AT_L1I_CACHEGEOMETRY 41
  40. #define AT_L1D_CACHESIZE 42
  41. #define AT_L1D_CACHEGEOMETRY 43
  42. #define AT_L2_CACHESIZE 44
  43. #define AT_L2_CACHEGEOMETRY 45
  44. #define AT_L3_CACHESIZE 46
  45. #define AT_L3_CACHEGEOMETRY 47
  46. #define AT_MINSIGSTKSZ 51 /* stack needed for signal delivery */
  47. #define AT_VECTOR_SIZE_ARCH 15 /* entries in ARCH_DLINFO */
  48. #endif