2011-02-17 18:11:09 +01:00
|
|
|
/* reboot.c - Systemcall interface to mm/signal.c::do_reboot()
|
|
|
|
|
|
|
|
author: Edvard Tuinder v892231@si.hhs.NL
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <lib.h>
|
|
|
|
#include "namespace.h"
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/reboot.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2012-11-22 17:30:22 +01:00
|
|
|
int reboot(int how)
|
2011-02-17 18:11:09 +01:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2012-11-22 17:30:22 +01:00
|
|
|
m.m1_i1 = how;
|
2011-02-17 18:11:09 +01:00
|
|
|
return _syscall(PM_PROC_NR, REBOOT, &m);
|
|
|
|
}
|