aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_sched.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-22 20:17:44 -0400
committerIan Moffett <ian@osmora.org>2024-04-22 20:17:44 -0400
commit9ea4f985a53a893d3a125dad776905f04905151d (patch)
tree566ba2e3fdf822e55a57032cbb019fad09eb4dfa /sys/kern/kern_sched.c
parentb90f77b95cd1509754b8038db10dde36c679c052 (diff)
kernel: auxv: Add AT_PAGESIZE
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_sched.c')
-rw-r--r--sys/kern/kern_sched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_sched.c b/sys/kern/kern_sched.c
index 9551265..a8aa23c 100644
--- a/sys/kern/kern_sched.c
+++ b/sys/kern/kern_sched.c
@@ -179,6 +179,7 @@ sched_init_stack(void *stack_top, char *argvp[], char *envp[], struct auxval aux
AUXVAL(sp, AT_ENTRY, auxv.at_entry);
AUXVAL(sp, AT_PHDR, auxv.at_phdr);
AUXVAL(sp, AT_PHNUM, auxv.at_phnum);
+ AUXVAL(sp, AT_PAGESIZE, vm_get_page_size());
STACK_PUSH(sp, 0);
/* Copy envp pointers */