diff --git a/src/libc.c b/src/libc.c index 1c8721e..4b45a41 100644 --- a/src/libc.c +++ b/src/libc.c @@ -2,6 +2,8 @@ #include +#include +#include #include #include #include @@ -42,6 +44,10 @@ void my_exit(const int status) { kernaux_drivers_console_printf("exit: %d\n", status); kernaux_drivers_shutdown_poweroff(); + + // TODO: libkernaux shutdown poweroff noreturn + volatile int x = 0; + for (;;) ++x; } void *my_calloc(size_t nmemb, size_t size)