[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fatal error handling



 >> Okay... fine. Can you at least have MiNT do the:
 >> 
 >>    Fatal system crash... press any key: 
 >>    System will now reboot...   
 >
 >Sorry, I am apparently missing something. What is an important difference
 >between a message like above and messages those MiNT used to produce
 >on a crash caused by internal error?

Currently, a fatal crash prints a message on console, but doesn't
do anything sensible after that.  One can press all the keys but
all that happens is the fatal error message is repeated.

What I advocate above is to change that.  After the fatal error is
reported, create a coldboot by calling the appropriate TOS message.

{
   printf("Fatal kernel error... Press any key:\n");
   scanf("%d", &key);
   printf("System will now reboot...\n");

/* No idea how to call a coldboot, hence I named it "coldboot();" */

   coldboot();

}


----------------------------------------------------------------
 Martin-Eric Racine           The Atari TT030 Homepage with FAQ
 FUNKYWARE CREATIONS inc.     http://members.tripod.com/~TT030/
----------------------------------------------------------------