William A. Gatliff wrote: > On Tue, Nov 12, 2002 at 04:04:39PM +0100, GOTZON ASTONDOA wrote: > >interrupt to the PowerPC.We have more or less 8 mSeg to close all the > Linux > >system (it has hard disk, ethernet, ftp and our own application). > > > > Can somebody tell me any idea to close the Linux system in the > >fastest way? We are thinking in capture the interrupt signal, but, is it > >enough fast? > > > > You could have an interrupt handler watching the signal from the 68k, > and sending a message via named pipe (perhaps) to a userspace program. > The userspace program would signal all your other programs, sync(), > then wait for powerdown.
Another option is mount the main fs as readonly, put in a robust recovery for any config data fs and use something equivalent of a reboot -f. Amit ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
