Hi all:
Our custom board has to microprocessors: 68K and PowerPC. We have
instaled Linux in the PowerPc side.
When the user suddenly shutdowns the board, the 68K sends an
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?
Thanks for your help in advance.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
William A. Gatliff wrote:
On Tue, Nov 12, 2002 at 04:04:39PM +0100, GOTZON ASTONDOA wrote:
quoted
interrupt to the PowerPC.We have more or less 8 mSeg to close all the
Linux
quoted
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/