[patch] mol quit-at-shutdown

Brad Midgley brad at turbolinux.com
Fri Jun 11 07:28:13 EST 1999


with this patch, mol quits when macos tries to pull down the power so the
macos shutdown action cleanly exits the emulator.

it appears all the mol cleanup is done in an atexit routine so i figured
this would be safe. my only concern is that it looks like macos does a
couple of scsi operations AFTER telling the cuda to power down. maybe i
should set an alarm and have the alarm kill the emulator instead...?

i would like to make the debugger interface optional via a command-line
interface to mol next...

--- ../mol/drivers/cuda.c       Fri May 21 12:47:58 1999
+++ ./drivers/cuda.c    Thu Jun 10 15:26:21 1999
@@ -332,7 +332,9 @@
                printm("CUDA: rest system\n");
                break;
        case CUDA_MS_RESET:
+               break;
        case CUDA_POWERDOWN:
+               exit(0);
        case CUDA_POWERUP_TIME:
                break;
        case CUDA_AUTOPOLL: /* input_len/output_len : 1/0 */


Brad
brad at pht.com | http://www.pht.com/~brad/



[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]





More information about the Linuxppc-dev mailing list