diff options
Diffstat (limited to 'lib/sys')
| -rw-r--r-- | lib/sys/reboot.h | 3 | ||||
| -rw-r--r-- | lib/sys/sync.h | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/sys/reboot.h b/lib/sys/reboot.h index 22893ca..824fbc3 100644 --- a/lib/sys/reboot.h +++ b/lib/sys/reboot.h @@ -7,9 +7,10 @@ #define REBOOT_HARD_RESET 0x01234567 #define REBOOT_ENABLE_CAD 0x89abcdef #define REBOOT_DISABLE_CAD 0 -#define REBOOT_POWEROFF 0x4321fedc +#define REBOOT_RESTART 0x4321fedc #define REBOOT_SUSPEND 0xd000fce2 #define REBOOT_NEW_KERNEL 0x45584543 +#define REBOOT_POWEROFF 0x01234567 static int reboot(int cmd) { diff --git a/lib/sys/sync.h b/lib/sys/sync.h new file mode 100644 index 0000000..fe61454 --- /dev/null +++ b/lib/sys/sync.h @@ -0,0 +1,11 @@ +#ifndef SYS_H +#define SYS_H + +#include "syscalls.h" + +void sync() +{ + syscall(SYNC); +} + +#endif |