aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/auxvec.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-12-10 01:50:28 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-01-27 23:18:59 -0500
commitcd01204b82933754a7276838656420477f64d4b8 (patch)
treef9e3b11574bec04cda78c549cdc5c37c3c75c4a5 /include/asm-sh/auxvec.h
parentc8c0a1aba9fa8f816dc8fb477ff816a5b700f0ea (diff)
sh: Encode L1/L2 cache shape in auxvt.
This adds in the L1I/L1D/L2 cache shape support to their respective entries in the ELF auxvt, based on the Alpha implementation. We use this on the userspace libc side for calculating a tightly packed SHMLBA amongst other things. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/auxvec.h')
-rw-r--r--include/asm-sh/auxvec.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-sh/auxvec.h b/include/asm-sh/auxvec.h
index 1b6916e63e90..4069858f8131 100644
--- a/include/asm-sh/auxvec.h
+++ b/include/asm-sh/auxvec.h
@@ -15,4 +15,16 @@
15#define AT_SYSINFO_EHDR 33 15#define AT_SYSINFO_EHDR 33
16#endif 16#endif
17 17
18/*
19 * More complete cache descriptions than AT_[DIU]CACHEBSIZE. If the
20 * value is -1, then the cache doesn't exist. Otherwise:
21 *
22 * bit 0-3: Cache set-associativity; 0 means fully associative.
23 * bit 4-7: Log2 of cacheline size.
24 * bit 8-31: Size of the entire cache >> 8.
25 */
26#define AT_L1I_CACHESHAPE 34
27#define AT_L1D_CACHESHAPE 35
28#define AT_L2_CACHESHAPE 36
29
18#endif /* __ASM_SH_AUXVEC_H */ 30#endif /* __ASM_SH_AUXVEC_H */