aboutsummaryrefslogtreecommitdiff
path: root/pk
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2014-01-13 16:29:03 -0800
committerAndrew Waterman <waterman@eecs.berkeley.edu>2014-01-13 16:29:03 -0800
commit5cd583648dfcb1e36a0054efc910435293d216e3 (patch)
tree03ce1cb0cf3dc4de906867133e19285091a8962c /pk
parent85c6c88804ce15b8ec8b53894e69984be90b11b0 (diff)
downloadpk-5cd583648dfcb1e36a0054efc910435293d216e3.zip
pk-5cd583648dfcb1e36a0054efc910435293d216e3.tar.gz
pk-5cd583648dfcb1e36a0054efc910435293d216e3.tar.bz2
Speed up glibc init
Diffstat (limited to 'pk')
-rw-r--r--pk/elf.h1
-rw-r--r--pk/init.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/pk/elf.h b/pk/elf.h
index f91a57f..cb55307 100644
--- a/pk/elf.h
+++ b/pk/elf.h
@@ -21,6 +21,7 @@
#define AT_PHNUM 5
#define AT_PAGESZ 6
#define AT_ENTRY 9
+#define AT_SECURE 23
typedef struct {
uint8_t e_ident[16];
diff --git a/pk/init.c b/pk/init.c
index 6ca3c49..848da65 100644
--- a/pk/init.c
+++ b/pk/init.c
@@ -79,6 +79,7 @@ static void user_init()
{AT_PHENT, current.phent},
{AT_PHDR, current.phdr},
{AT_PAGESZ, RISCV_PGSIZE},
+ {AT_SECURE, 0},
{AT_NULL, 0}
};