2 Copyright © 1995-2013, 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 <exec/tasks.h>
12 #include <aros/libcall.h>
14 #include <proto/exec.h>
16 #include "exec_util.h"
18 /* See rom/exec/coldreboot.c for documentation */
20 AROS_LH0(void, ColdReboot
,
21 struct ExecBase
*, SysBase
, 121, Exec
)
25 Exec_DoResetCallbacks((struct IntExecBase
*)SysBase
, SD_ACTION_WARMREBOOT
);
27 asm volatile("li %%r3,%0; sc"::"i"(0x100 /*SC_REBOOT*/):"memory","r3");