Forgotten commit. Added automount.
[AROS.git] / arch / all-pc / exec / coldreboot.c
blobdc04c939b18562414e5e65ad9445627cee9eb8a3
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id: supervisor.c 31451 2009-06-20 21:21:46Z neil $
5 Desc: Supervisor() - Execute some code in a priviledged environment.
6 Lang: english
7 */
9 #include <aros/libcall.h>
11 #include "exec_util.h"
12 #include "kernel_syscall.h" /* Comes from rom/kernel */
14 AROS_LH0(void, ColdReboot,
15 struct ExecBase *, SysBase, 121, Exec)
17 AROS_LIBFUNC_INIT
19 Exec_DoResetCallbacks((struct IntExecBase *)SysBase);
21 __asm__ __volatile__ ("int $0x80"::"a"(SC_REBOOT));
23 AROS_LIBFUNC_EXIT
24 } /* Supervisor() */