From owner-freebsd-current Wed Feb 6 16:51:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id 6B87637B421 for ; Wed, 6 Feb 2002 16:51:08 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020207002009.CVRY3578.rwcrmhc52.attbi.com@InterJet.elischer.org>; Thu, 7 Feb 2002 00:20:09 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA93186; Wed, 6 Feb 2002 16:10:27 -0800 (PST) Date: Wed, 6 Feb 2002 16:10:26 -0800 (PST) From: Julian Elischer To: Andrew Gallatin Cc: current@freebsd.org Subject: Re: Non 386 testers REALLY NEEDED In-Reply-To: <15457.47506.919518.594829@grasshopper.cs.duke.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 I don't know the alpha at all but how about leaq t0, thread0 or some similar thing or even.. ldq t0,$thread0 or something similar.. who's assembler is being used? On Wed, 6 Feb 2002, Andrew Gallatin wrote: > > 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? > > Drew > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message