From owner-freebsd-current Wed Feb 6 17: 1:35 2002 Delivered-To: freebsd-current@freebsd.org Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by hub.freebsd.org (Postfix) with ESMTP id 3AD8A37B404 for ; Wed, 6 Feb 2002 17:01:32 -0800 (PST) Received: (from jake@localhost) by k6.locore.ca (8.11.6/8.11.6) id g171FUD32065; Wed, 6 Feb 2002 20:15:30 -0500 (EST) (envelope-from jake) Date: Wed, 6 Feb 2002 20:15:29 -0500 From: Jake Burkholder To: Andrew Gallatin Cc: Julian Elischer , current@FreeBSD.ORG Subject: Re: Non 386 testers REALLY NEEDED Message-ID: <20020206201529.B5140@locore.ca> References: <15457.47000.527840.252043@grasshopper.cs.duke.edu> <15457.47506.919518.594829@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15457.47506.919518.594829@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Wed, Feb 06, 2002 at 06:17:38PM -0500 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 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: lda t0, fusufault /* trap faults */ Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message