6a8b903524c8c7af5fafa444e038fa7734c7d586
[AROS.git] / arch / arm-raspi / exec / coldreboot.c
blob6a8b903524c8c7af5fafa444e038fa7734c7d586
1 /*
2 Copyright © 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 /*****************************************************************************
21 NAME */
23 AROS_LH0(void, ColdReboot,
25 /* LOCATION */
26 struct ExecBase *, SysBase, 121, Exec)
28 /* FUNCTION
29 This function will reboot the computer.
31 INPUTS
32 None.
34 RESULT
35 This function does not return.
37 NOTES
38 It can be quite harmful to call this function. It may be possible that
39 you will lose data from other tasks not having saved, or disk buffers
40 not being flushed. Plus you could annoy the (other) users.
42 EXAMPLE
44 BUGS
46 SEE ALSO
48 ******************************************************************************/
50 AROS_LIBFUNC_INIT
52 Exec_DoResetCallbacks((struct IntExecBase *)SysBase, SD_ACTION_WARMREBOOT);
54 asm volatile("mov pc,#0;");
56 AROS_LIBFUNC_EXIT