From owner-freebsd-current Wed Feb 6 17:30:53 2002 Delivered-To: freebsd-current@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 5891437B43A for ; Wed, 6 Feb 2002 17:30:36 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id g171UEK58541; Thu, 7 Feb 2002 02:30:15 +0100 (CET) (envelope-from ticso@cicely8.cicely.de) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g171TXdQ013862; Thu, 7 Feb 2002 02:29:33 +0100 (CET)?g (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id g171TWQ00776; Thu, 7 Feb 2002 02:29:32 +0100 (CET) Received: (from ticso@localhost) by cicely8.cicely.de (8.11.6/8.11.6) id g171TVu02677; Thu, 7 Feb 2002 02:29:31 +0100 (CET) (envelope-from ticso) Date: Thu, 7 Feb 2002 02:29:30 +0100 From: Bernd Walter To: Jake Burkholder Cc: Andrew Gallatin , Julian Elischer , current@FreeBSD.ORG Subject: Re: Non 386 testers REALLY NEEDED Message-ID: <20020207012930.GB2567@cicely8.cicely.de> References: <15457.47000.527840.252043@grasshopper.cs.duke.edu> <15457.47506.919518.594829@grasshopper.cs.duke.edu> <20020206201529.B5140@locore.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020206201529.B5140@locore.ca> User-Agent: Mutt/1.3.26i X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 06, 2002 at 08:15:29PM -0500, Jake Burkholder wrote: > Apparently, On Wed, Feb 06, 2002 at 06:17:38PM -0500, > Andrew Gallatin said words to the effect of; > > > > > Andrew Gallatin writes: > > > > > > Since thread0 is no longer a pointer, this looks suspicious in locore.s: > > > > > > /* > > > * Switch to proc0's PCB. > > > */ > > > ldq t0,thread0 /* get phys addr of pcb */ > > > ldq a0,TD_MD_PCBPADDR(t0) > > > SWITCH_CONTEXT > > > > Yeah.. that's it. I hacked around it by taking thread0's address in > > machdep.c, shoving it into a global and using that global in locore.s > > The resulting kernel booted. > > > > What's the "right" way to do this? > > I think you want lda, its used to load an address constant in support.s: From what I heared about the thread0 change "lda t0,thread0" *is* the right thing. It loads the effective address of thread0 into register t0. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message