Date: Wed, 06 Feb 2002 23:33:49 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: current@freebsd.org, Julian Elischer <julian@elischer.org> Subject: Re: Non 386 testers REALLY NEEDED Message-ID: <XFMail.020206233349.jhb@FreeBSD.org> In-Reply-To: <15457.47506.919518.594829@grasshopper.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06-Feb-02 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? lda t0,thread0 maybe? > Drew -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ 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?XFMail.020206233349.jhb>