summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-08-17 08:55:45 +0000
committerkib <kib@FreeBSD.org>2010-08-17 08:55:45 +0000
commitd9f088a03e65b9a9a1109213406f79fc4a1b33ae (patch)
tree33205433846af6fcb0274947c72e1f1e9432d3fe /sys/powerpc
parent407c718f42064fc833ef52171e7d791d793f2b5f (diff)
downloadFreeBSD-src-d9f088a03e65b9a9a1109213406f79fc4a1b33ae.zip
FreeBSD-src-d9f088a03e65b9a9a1109213406f79fc4a1b33ae.tar.gz
Supply some useful information to the started image using ELF aux vectors.
In particular, provide pagesize and pagesizes array, the canary value for SSP use, number of host CPUs and osreldate. Tested by: marius (sparc64) MFC after: 1 month
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/elf.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/powerpc/include/elf.h b/sys/powerpc/include/elf.h
index 25c2506..e1a5bc8 100644
--- a/sys/powerpc/include/elf.h
+++ b/sys/powerpc/include/elf.h
@@ -99,8 +99,14 @@ __ElfType(Auxinfo);
#define AT_ICACHEBSIZE 11 /* Instruction cache block size for the uP. */
#define AT_UCACHEBSIZE 12 /* Cache block size, or `0' if cache not unified. */
#define AT_EXECPATH 13 /* Path to the executable. */
-
-#define AT_COUNT 14 /* Count of defined aux entry types. */
+#define AT_CANARY 14 /* Canary for SSP */
+#define AT_CANARYLEN 15 /* Length of the canary. */
+#define AT_OSRELDATE 16 /* OSRELDATE. */
+#define AT_NCPUS 17 /* Number of CPUs. */
+#define AT_PAGESIZES 18 /* Pagesizes. */
+#define AT_PAGESIZESLEN 19 /* Number of pagesizes. */
+
+#define AT_COUNT 20 /* Count of defined aux entry types. */
/*
* Relocation types.
OpenPOWER on IntegriCloud