From ce47711dee78c8fe0f7e2d7d48cfef88bea36a54 Mon Sep 17 00:00:00 2001 From: Peter Dufault Date: Mon, 1 Jun 1998 21:54:43 +0000 Subject: [PATCH] Set PAGE_SIZE for _SC_PAGESIZE sysconf(). --- sys/kern/p1003_1b.c | 1 + sys/posix4/p1003_1b.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/kern/p1003_1b.c b/sys/kern/p1003_1b.c index 62ce1508be8b..9a70d5c2fb0a 100644 --- a/sys/kern/p1003_1b.c +++ b/sys/kern/p1003_1b.c @@ -254,6 +254,7 @@ int sched_rr_get_interval(struct proc *p, static void p31binit(void *notused) { (void) sched_attach(); + p31b_setcfg(CTL_P1003_1B_PAGESIZE, PAGE_SIZE); } SYSINIT(p31b, SI_SUB_P1003_1B, SI_ORDER_FIRST, p31binit, NULL); diff --git a/sys/posix4/p1003_1b.c b/sys/posix4/p1003_1b.c index 62ce1508be8b..9a70d5c2fb0a 100644 --- a/sys/posix4/p1003_1b.c +++ b/sys/posix4/p1003_1b.c @@ -254,6 +254,7 @@ int sched_rr_get_interval(struct proc *p, static void p31binit(void *notused) { (void) sched_attach(); + p31b_setcfg(CTL_P1003_1B_PAGESIZE, PAGE_SIZE); } SYSINIT(p31b, SI_SUB_P1003_1B, SI_ORDER_FIRST, p31binit, NULL);