make.tmpl: add missing compiler attribute to build_progs
[AROS.git] / arch / all-unix / exec / coldreboot.c
blobb4c77dc7c1e57d4c676f2fffaeee2bfd23126661
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: ColdReboot() - Reboot the computer, Unix-hosted implementation.
6 Lang: english
7 */
9 #include <aros/debug.h>
11 #include "exec_intern.h"
12 #include "exec_util.h"
14 AROS_LH0(void, ColdReboot,
15 struct ExecBase *, SysBase, 121, Exec)
17 AROS_LIBFUNC_INIT
19 Exec_DoResetCallbacks((struct IntExecBase *)SysBase, SD_ACTION_WARMREBOOT);
21 PD(SysBase).SysIFace->exit(0x8F); /* Another magic value for the bootstrap */
22 AROS_HOST_BARRIER
24 AROS_LIBFUNC_EXIT
25 } /* ColdReboot() */