Date: Thu, 7 Feb 2002 02:29:30 +0100 From: Bernd Walter <ticso@cicely8.cicely.de> To: Jake Burkholder <jake@locore.ca> Cc: Andrew Gallatin <gallatin@cs.duke.edu>, Julian Elischer <julian@elischer.org>, current@FreeBSD.ORG Subject: Re: Non 386 testers REALLY NEEDED Message-ID: <20020207012930.GB2567@cicely8.cicely.de> In-Reply-To: <20020206201529.B5140@locore.ca> References: <Pine.BSF.4.21.0202061157570.91961-100000@InterJet.elischer.org> <15457.47000.527840.252043@grasshopper.cs.duke.edu> <15457.47506.919518.594829@grasshopper.cs.duke.edu> <20020206201529.B5140@locore.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020207012930.GB2567>