From 96210b28be61fce9963c15482d4b8a99cda9a016 Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Fri, 24 Sep 1993 21:00:29 +0000 Subject: [PATCH] >From: rich@id.slip.bcm.tmc.edu.cdrom.com (Rich Murphey) Date: Sun, 12 Sep 1993 18:19:05 -0500 This will allow you to compile and run a freebsd kernel with shared memory support. I haven't tested the shm*() calls yet. You run out of page table descriptors if you specify 4Mb of sharable memory (SHMMAXPGS=1024). I don't know what the limit is, but SHMMAXPGS=64 works. Rich --- sys/amd64/amd64/machdep.c | 5 ++++- sys/i386/i386/machdep.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 45ffd91c2ce4..3f587c834578 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -49,7 +49,7 @@ * 20 Apr 93 Bruce Evans New npx-0.5 code * 25 Apr 93 Bruce Evans New intr-0.1 code */ -static char rcsid[] = "$Header: /freefall/a/cvs/386BSD/src/sys/i386/i386/machdep.c,v 1.5 1993/07/27 10:52:17 davidg Exp $"; +static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/i386/machdep.c,v 1.6 1993/08/09 06:16:41 rgrimes Exp $"; #include @@ -81,6 +81,9 @@ extern vm_offset_t avail_end; #include "machine/specialreg.h" #include "i386/isa/rtc.h" +#ifdef SYSVSHM +#include "sys/shm.h" +#endif /* SYSVSHM */ #define EXPECT_BASEMEM 640 /* The expected base memory*/ #define INFORM_WAIT 1 /* Set to pause berfore crash in weird cases*/ diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 45ffd91c2ce4..3f587c834578 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -49,7 +49,7 @@ * 20 Apr 93 Bruce Evans New npx-0.5 code * 25 Apr 93 Bruce Evans New intr-0.1 code */ -static char rcsid[] = "$Header: /freefall/a/cvs/386BSD/src/sys/i386/i386/machdep.c,v 1.5 1993/07/27 10:52:17 davidg Exp $"; +static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/i386/machdep.c,v 1.6 1993/08/09 06:16:41 rgrimes Exp $"; #include @@ -81,6 +81,9 @@ extern vm_offset_t avail_end; #include "machine/specialreg.h" #include "i386/isa/rtc.h" +#ifdef SYSVSHM +#include "sys/shm.h" +#endif /* SYSVSHM */ #define EXPECT_BASEMEM 640 /* The expected base memory*/ #define INFORM_WAIT 1 /* Set to pause berfore crash in weird cases*/