Subject: Is the kernel designed to return?
To: None <port-macppc@netbsd.org>
From: Derek Peschel <dpeschel@eskimo.com>
List: port-macppc
Date: 12/30/2001 08:23:21
Probably I mentioned this... I got the idea that "halt" should return
to an OF prompt instead of just looping.  But I realized that calling the
cpu_reboot function is not the cleanest way to do that -- I want to return
from a series of nested functions (ultimately reaching the boot loader,
which has an "OF_exit" statement following the "chain" statement that
transfers control to the kernel).

Is the kernel designed to be tortured in this way?  Otherwise I'd have
to do something even nastier (which I wouldn't understand anyway).

The other issue is that (AIUI) OF_exit should be called exactly
as many times as OF_enter is.  So I'd need to track down all the exits
and enters.  Is anyone using another boot loader besides ofwboot?

-- Derek