summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/auxvec.h
diff options
context:
space:
mode:
authorH. J. Lu2005-09-07 00:16:49 +0200
committerLinus Torvalds2005-09-08 01:57:21 +0200
commit36d57ac4a818cb4aa3edbdf63ad2ebc31106f925 (patch)
tree445eda00ee5974a65e21152cd240fb604c6d112d /include/asm-ppc/auxvec.h
parent[PATCH] radix_tag_get(): differentiate between no present node and tag unset ... (diff)
downloadkernel-qcow2-linux-36d57ac4a818cb4aa3edbdf63ad2ebc31106f925.tar.gz
kernel-qcow2-linux-36d57ac4a818cb4aa3edbdf63ad2ebc31106f925.tar.xz
kernel-qcow2-linux-36d57ac4a818cb4aa3edbdf63ad2ebc31106f925.zip
[PATCH] auxiliary vector cleanups
The size of auxiliary vector is fixed at 42 in linux/sched.h. But it isn't very obvious when looking at linux/elf.h. This patch adds AT_VECTOR_SIZE so that we can change it if necessary when a new vector is added. Because of include file ordering problems, doing this necessitated the extraction of the AT_* symbols into a standalone header file. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ppc/auxvec.h')
-rw-r--r--include/asm-ppc/auxvec.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-ppc/auxvec.h b/include/asm-ppc/auxvec.h
new file mode 100644
index 000000000000..172358df29c8
--- /dev/null
+++ b/include/asm-ppc/auxvec.h
@@ -0,0 +1,14 @@
+#ifndef __PPC_AUXVEC_H
+#define __PPC_AUXVEC_H
+
+/*
+ * We need to put in some extra aux table entries to tell glibc what
+ * the cache block size is, so it can use the dcbz instruction safely.
+ */
+#define AT_DCACHEBSIZE 19
+#define AT_ICACHEBSIZE 20
+#define AT_UCACHEBSIZE 21
+/* A special ignored type value for PPC, for glibc compatibility. */
+#define AT_IGNOREPPC 22
+
+#endif