Thread (5 messages) 5 messages, 5 authors, 1999-06-11
STALE9858d

[patch] mol quit-at-shutdown

From: Brad Midgley <hidden>
Date: 1999-06-10 21:28:13

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@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.   ]]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help