Exception in openfirmware calling
Andrew Turner
andrew at fubar.geek.nz
Thu Apr 5 08:55:57 UTC 2007
On Tue, 03 Apr 2007 17:16:32 -0700
Peter Grehan <grehan at freebsd.org> wrote:
> > I've used the ofw_stack code from NetBSD for now. It creates a new
> > stack with a real address.
>
> That will work, though I don't like the way it's implemented: the
> calls in all of the OFW routines is a little ugly. My plan was to
> have a call_onstack() routine that would allow a function to be
> executed on a specified stack. This can be used in other places too,
> such as when the initial thread has to switch over to it's allocated
> stack.
I've managed to use it to get to the point when FreeBSD complains there
is no network devices to mount root from. The OF_read and OF_write calls
need the ofw_stack. I also allocated a page of real memory that I copy
the string to display to in OF_write and read the input data from in
OF_read. It is not the best fix but it does allow me to work on other
parts of the kernel.
Andrew
More information about the freebsd-ppc
mailing list