diff --git a/headers/private/kernel/syscalls.h b/headers/private/kernel/syscalls.h index d05eaf6781..ce80ba7b26 100644 --- a/headers/private/kernel/syscalls.h +++ b/headers/private/kernel/syscalls.h @@ -43,7 +43,7 @@ struct user_disk_system_info; #pragma syscalls begin #endif -extern int _kern_null(); +extern int _kern_is_computer_on(void); extern status_t _kern_generic_syscall(const char *subsystem, uint32 function, void *buffer, size_t bufferSize); diff --git a/src/system/kernel/syscalls.c b/src/system/kernel/syscalls.c index d99a40b095..0647ae80f8 100644 --- a/src/system/kernel/syscalls.c +++ b/src/system/kernel/syscalls.c @@ -147,12 +147,11 @@ out: static inline int -_user_null() +_user_is_computer_on(void) { - return 0; + return 1; } - // map to the arch specific call static inline int64 diff --git a/src/system/libroot/os/system_info.c b/src/system/libroot/os/system_info.c index 2e5d7df2a2..66c7f61dc6 100644 --- a/src/system/libroot/os/system_info.c +++ b/src/system/libroot/os/system_info.c @@ -21,7 +21,7 @@ _get_system_info(system_info *info, size_t size) int32 is_computer_on(void) { - return 1; + return _kern_is_computer_on(); }