From owner-cvs-all Wed Apr 28 13:34: 4 1999 Delivered-To: cvs-all@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 0584314EAD; Wed, 28 Apr 1999 13:33:53 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id VAA49964; Wed, 28 Apr 1999 21:34:03 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Wed, 28 Apr 1999 21:34:03 +0100 (BST) From: Doug Rabson To: Dmitrij Tejblum Cc: Dmitrij Tejblum , cvs-committers@freebsd.org, cvs-all@freebsd.org, luoqi@freebsd.org Subject: Re: cvs commit: src/sys/alpha/alpha pmap.c In-Reply-To: <199904282026.AAA89593@arc.hq.cti.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Thu, 29 Apr 1999, Dmitrij Tejblum wrote: > > > (I just discovered that freshly built kernel panic on boot in > > > run_interrupt_driven_config_hooks+0x68 due to a memory access fault. :-| > > > Ideas?) > > That's because Luoqi removed "curproc = p; /* XXX redundant */" from > init_proc0(). > Any idea where it should be done nowdays? Maybe locore? I think that the i386 port does it there. I haven't tested this patch. Index: locore.s =================================================================== RCS file: /home/ncvs/src/sys/alpha/alpha/locore.s,v retrieving revision 1.6 diff -u -r1.6 locore.s --- locore.s 1998/11/28 09:55:15 1.6 +++ locore.s 1999/04/28 20:33:01 @@ -110,6 +110,7 @@ * Switch to proc0's PCB, which is at U_PCB off of proc0paddr. */ lda t0,proc0 /* get phys addr of pcb */ + stq t0,curproc /* initialise curproc */ ldq a0,P_MD_PCBPADDR(t0) SWITCH_CONTEXT -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message