1c0fcfb293a9f43ac9885297651e9a5bfdb8aee4
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 Desc: ColdReboot() - Reboot the computer.
9 #include <aros/debug.h>
11 #include "exec_intern.h"
12 #include "exec_util.h"
14 extern void Exec_MagicResetCode(void);
15 /* Reset everything but the CPU, then restart
16 * at the ROM exception vector
21 " .globl Exec_MagicResetCode\n"
22 "Exec_MagicResetCode:\n"
30 /*****************************************************************************
33 #include <proto/exec.h>
35 AROS_LH0(void, ColdReboot
,
38 struct ExecBase
*, SysBase
, 121, Exec
)
41 This function will reboot the computer.
47 This function does not return.
50 It can be quite harmful to call this function. It may be possible that
51 you will lose data from other tasks not having saved, or disk buffers
52 not being flushed. Plus you could annoy the (other) users.
60 ******************************************************************************/
64 /* Disable interrupts, and do all the reset callbacks
66 Exec_DoResetCallbacks((struct IntExecBase
*)SysBase
, SD_ACTION_WARMREBOOT
);
68 Supervisor((ULONG_FUNC
)Exec_MagicResetCode
);