2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: ColdReboot() - Reboot the computer.
9 #include <exec/types.h>
10 #include <exec/execbase.h>
11 #include <aros/libcall.h>
12 #include <proto/exec.h>
14 #include "exec_util.h"
16 /*****************************************************************************
20 AROS_LH0(void, ColdReboot
,
23 struct ExecBase
*, SysBase
, 121, Exec
)
26 This function will reboot the computer.
32 This function does not return.
35 It can be quite harmful to call this function. It may be possible that
36 you will lose data from other tasks not having saved, or disk buffers
37 not being flushed. Plus you could annoy the (other) users.
46 This function is not really necessary, and could be left unimplemented
47 on many systems. It is best when using this function to allow the memory
48 contents to remain as they are, since some programs may use this
49 function when installing resident modules.
53 ******************************************************************************/
57 Exec_DoResetCallbacks((struct IntExecBase
*)SysBase
);
59 asm volatile("li %%r3,%0; sc"::"i"(0x100 /*SC_REBOOT*/):"memory","r3");