From bf7c1f636c872d4e452bd9db127df20e2a077ab2 Mon Sep 17 00:00:00 2001 From: Simon Kuenzer Date: Tue, 15 Dec 2020 09:19:12 +0100 Subject: [PATCH] Initialize pthread-embedded as early as possible Because other Unikraft libraries may create threads, we initialize pthread-embedded within the early init class. Signed-off-by: Simon Kuenzer Reviewed-by: Daniel Dinca --- pte_osal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pte_osal.c b/pte_osal.c index cc24495..d23e6b3 100644 --- a/pte_osal.c +++ b/pte_osal.c @@ -74,7 +74,7 @@ static int pthread_initcall(void) initialized = true; return result; } -uk_lib_initcall(pthread_initcall); +uk_early_initcall_prio(pthread_initcall, UK_PRIO_EARLIEST); pte_osResult pte_osInit(void) { -- 2.39.5