revert between 56095 -> 55830 in arch
[AROS.git] / arch / ppc-sam440 / exec / coldreboot.c
blobff1ca5e6696fb6db16e16c802ee4ed645cdbbef3
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: ColdReboot() - Reboot the computer.
6 Lang: english
7 */
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_intern.h"
17 #include "exec_util.h"
19 /* See rom/exec/coldreboot.c for documentation */
21 AROS_LH0(void, ColdReboot,
22 struct ExecBase *, SysBase, 121, Exec)
24 AROS_LIBFUNC_INIT
26 Exec_DoResetCallbacks((struct IntExecBase *)SysBase, SD_ACTION_WARMREBOOT);
28 asm volatile("li %%r3,%0; sc"::"i"(0x100 /*SC_REBOOT*/):"memory","r3");
30 AROS_LIBFUNC_EXIT