diff --git a/src/kernel/libroot/posix/malloc/arch-specific.cpp b/src/kernel/libroot/posix/malloc/arch-specific.cpp index 14f224a50f..c92a63ec62 100644 --- a/src/kernel/libroot/posix/malloc/arch-specific.cpp +++ b/src/kernel/libroot/posix/malloc/arch-specific.cpp @@ -41,7 +41,7 @@ status_t release_sem(sem_id id); int hoardGetThreadID (void) { - return sys_get_current_thread_id(); + return find_thread(NULL); }