2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id: coldreboot.c 18441 2003-07-07 20:01:00Z hkiel $
5 Desc: ShutdownA() - Shut down the operating system.
10 #include <exec/tasks.h>
12 /*****************************************************************************
15 #include <proto/exec.h>
17 AROS_LH1(ULONG
, ShutdownA
,
20 AROS_LHA(ULONG
, action
, D0
),
23 struct ExecBase
*, SysBase
, 173, Exec
)
26 This function will shut down the operating system.
30 * SD_ACTION_POWEROFF - power off the machine.
31 * SD_ACTION_COLDREBOOT - cold reboot the machine (not only AROS).
34 This function does not return in case of success. Otherwise is returns
38 It can be quite harmful to call this function. It may be possible that
39 you will lose data from other tasks not having saved, or disk buffers
40 not being flushed. Plus you could annoy the (other) users.
49 ******************************************************************************/
53 if (action
== SD_ACTION_COLDREBOOT
)