kernel/p1003_1b: Fix the p1003_1b.shared_memory_objects sysctl.
authorSascha Wildner <saw@online.de>
Mon, 26 Oct 2015 17:32:18 +0000 (18:32 +0100)
committerSascha Wildner <saw@online.de>
Mon, 26 Oct 2015 17:32:18 +0000 (18:32 +0100)
sys/kern/kern_p1003_1b.c

index 327b077..d3313a7 100644 (file)
@@ -353,10 +353,12 @@ sys_sched_rr_get_interval(struct sched_rr_get_interval_args *uap)
 static void
 p31binit(void *notused)
 {
-       (void) sched_attach();
-       p31b_setcfg(CTL_P1003_1B_PAGESIZE, PAGE_SIZE);
+       sched_attach();
        p31b_setcfg(CTL_P1003_1B_ASYNCHRONOUS_IO, -1);
        p31b_setcfg(CTL_P1003_1B_MESSAGE_PASSING, _POSIX_MESSAGE_PASSING);
+       p31b_setcfg(CTL_P1003_1B_PAGESIZE, PAGE_SIZE);
+       p31b_setcfg(CTL_P1003_1B_SHARED_MEMORY_OBJECTS,
+           _POSIX_SHARED_MEMORY_OBJECTS);
 }
 
 SYSINIT(p31b, SI_SUB_P1003_1B, SI_ORDER_FIRST, p31binit, NULL);