[PATCH] return to OF via trap, not exit
    Michael Ellerman 
    michael at ellerman.id.au
       
    Fri Mar 24 10:11:28 EST 2006
    
    
  
On Thu, 2006-03-23 at 22:03 +0100, Olaf Hering wrote:
>  On Mon, Mar 06, Segher Boessenkool wrote:
> 
> > That's better than always calling trap, sure.  Is there any reason
> > you can't just do it on Macs though?  Because the problem you're trying
> > to work around only happens there.
> 
> Maybe something like this? Only compile tested
> 
> 
> Do not call prom exit prom_panic. It clears the screen and the exit message is lost.
> On some (or all?) pmacs it causes another crash when OF tries to print the
> date and time in its banner.
> 
> Set of_platform earlier to catch more prom_panic() calls.
Looks reasonable, assuming it works :)
cheers
-- 
Michael Ellerman
IBM OzLabs
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
    
    
More information about the Linuxppc-dev
mailing list