From owner-freebsd-current Wed Feb 6 15:18:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 838C037B41C for ; Wed, 6 Feb 2002 15:18:09 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id SAA18736; Wed, 6 Feb 2002 18:18:09 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g16NHdT25676; Wed, 6 Feb 2002 18:17:39 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15457.47506.919518.594829@grasshopper.cs.duke.edu> Date: Wed, 6 Feb 2002 18:17:38 -0500 (EST) To: Julian Elischer Cc: current@freebsd.org Subject: Re: Non 386 testers REALLY NEEDED In-Reply-To: <15457.47000.527840.252043@grasshopper.cs.duke.edu> References: <15457.47000.527840.252043@grasshopper.cs.duke.edu> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid 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 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