Add new aux vector entries for cache size and shape
#57
Closed
opened 8 years ago by wschmidt-ibm
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Section 4.1.2.3 should reflect this recent new agreement between glibc and the kernel:
/*
*/
#define AT_L1I_CACHESIZE 40
#define AT_L1I_CACHESHAPE 41
#define AT_L1D_CACHESIZE 42
#define AT_L1D_CACHESHAPE 43
#define AT_L2_CACHESIZE 44
#define AT_L2_CACHESHAPE 45
#define AT_L3_CACHESIZE 46
#define AT_L3_CACHESHAPE 47
Tulio reported an issue with Ben's patches on the linuxppc-dev@lists.ozlabs.org
list:
These names will clash with the other ones defined by alpha and sh:
/* Shapes of the caches. Bits 0-3 contains associativity; bits 4-7 contains
log2 of line size; mask those to get cache size. */
#define AT_L1I_CACHESHAPE 34
#define AT_L1D_CACHESHAPE 35
#define AT_L2_CACHESHAPE 36
#define AT_L3_CACHESHAPE 37
Refer to this patch message for the final version:
https://lists.ozlabs.org/pipermail/linuxppc-dev/2017-January/152790.html