From owner-freebsd-current Tue Oct 22 19:31:07 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA23927 for current-outgoing; Tue, 22 Oct 1996 19:31:07 -0700 (PDT) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA23920 for ; Tue, 22 Oct 1996 19:31:03 -0700 (PDT) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.7.6/8.7.3) with SMTP id TAA20951 for ; Tue, 22 Oct 1996 19:28:36 -0700 (PDT) Message-ID: <326D8229.3F54BC7E@whistle.com> Date: Tue, 22 Oct 1996 19:26:17 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0b6 (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: current@FreeBSD.ORG Subject: AAARGGHHH!Re: [Fwd: another patch for comment] References: <326D7C09.794BDF32@whistle.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk AARRGGHHHH ! this time I included TOO MUCH patch! the relevent parts are below.. htere are disadvantages to using netscape for mail.. you can't examine your inclusions before you send them! Julian Elischer wrote: > > AARG! > left out the patch! > > here it is.. > > --------------------------------------------------------------- > > Subject: another patch for comment > Date: Tue, 22 Oct 1996 18:58:11 -0700 > From: Julian Elischer > Organization: Whistle Communications > To: current@freebsd.org > > here's another patch I'd like to add. > > hopefully I can also eventually add a '/stand/selftest' > as well. Of course at this stage we can only test our own hardware etc. > but I'd like to add a version that can do basic sanity checks > on regular PC hardware as well. > > It's such a small change that I'd like to add it to the generic > sources rather than keep it proprietary. > > julian > > --------------------------------------------------------------- > ? 0 > Index: init_main.c > =================================================================== > RCS file: /cvs/freebsd/src/sys/kern/init_main.c,v > retrieving revision 1.49 > diff -c -r1.49 init_main.c > *** 1.49 1996/09/23 04:37:54 > --- init_main.c 1996/10/23 01:31:29 > *************** > *** 533,539 **** > * List of paths to try when searching for "init". > */ > static char *initpaths[] = { > ! "/sbin/init", > "/sbin/oinit", > "/sbin/init.bak", > "/stand/sysinstall", > --- 533,540 ---- > * List of paths to try when searching for "init". > */ > static char *initpaths[] = { > ! "/stand/selftest", /* not default, use with RB_SELFTEST */ > ! "/sbin/init", /* Default action */ > "/sbin/oinit", > "/sbin/init.bak", > "/stand/sysinstall", > *************** > *** 574,580 **** > p->p_vmspace->vm_maxsaddr = (caddr_t)addr; > p->p_vmspace->vm_ssize = 1; > > ! for (pathp = &initpaths[0]; (path = *pathp) != NULL; pathp++) { > /* > * Move out the boot flag argument. > */ > --- 575,582 ---- > p->p_vmspace->vm_maxsaddr = (caddr_t)addr; > p->p_vmspace->vm_ssize = 1; > > ! for (pathp = ((boothowto & RB_SELFTEST)? &initpaths[0] : &initpaths[1]); > ! (path = *pathp) != NULL; pathp++) { > /* > * Move out the boot flag argument. > */