diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-08 13:19:56 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-08 13:19:56 +0100 |
| commit | d7229970f8910aa756d299f8bdceee7f4d1fbfbc (patch) | |
| tree | a95ff2e6bd50578d34d6449c9fde173acc0ef59c /lib/sys | |
| parent | e947b1459f93f11ad91f3e920676fe1b828281e7 (diff) | |
add env and make smash be able to parse files with comments
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 |