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.
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
)
19 Exec_DoResetCallbacks((struct IntExecBase
*)SysBase
);
21 __asm__
__volatile__ ("int $0x80"::"a"(SC_REBOOT
));