1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <kernel/syscalls.h> int main() { _syscall_debuglog("hello from init! ", sizeof("hello from init! ") - 1); _syscall_fork(); _syscall_debuglog("i got forked. ", sizeof("i got forked. ") - 1); _syscall_exit("bye from init! ", sizeof("bye from init! ") - 1); }