Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / rom / exec / shutdowna.c
blobe30ecc6875aaa405f83ab7c80421a28839414df6
1 /*
2 Copyright © 1995-2009, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: ShutdownA() - Shut down the operating system.
6 Lang: english
7 */
9 #include <aros/debug.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
14 NAME */
16 AROS_LH1(ULONG, ShutdownA,
18 /* SYNOPSIS */
19 AROS_LHA(ULONG, action, D0),
21 /* LOCATION */
22 struct ExecBase *, SysBase, 173, Exec)
24 /* FUNCTION
25 This function will shut down the operating system.
27 INPUTS
28 action - what to do:
29 * SD_ACTION_POWEROFF - power off the machine.
30 * SD_ACTION_COLDREBOOT - cold reboot the machine (not only AROS).
32 RESULT
33 This function does not return in case of success. Otherwise is returns
34 zero.
36 NOTES
37 It can be quite harmful to call this function. It may be possible that
38 you will lose data from other tasks not having saved, or disk buffers
39 not being flushed. Plus you could annoy the (other) users.
41 EXAMPLE
43 BUGS
45 SEE ALSO
46 ColdReboot()
48 ******************************************************************************/
50 AROS_LIBFUNC_INIT
52 /* This is a stub, we don't know what to do here. The actual implementation
53 is entirely arch-specific. */
54 return 0;
56 AROS_LIBFUNC_EXIT