2 Copyright © 1995-2013, 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 #include <proto/exec.h>
32 /* See rom/exec/coldreboot.c for documentation */
34 AROS_LH0(void, ColdReboot
,
35 struct ExecBase
*, SysBase
, 121, Exec
)
39 /* Disable interrupts, and do all the reset callbacks
41 Exec_DoResetCallbacks((struct IntExecBase
*)SysBase
, SD_ACTION_WARMREBOOT
);
43 Supervisor((ULONG_FUNC
)Exec_MagicResetCode
);