From: Sergiu Moga Date: Sat, 9 Dec 2023 08:10:27 +0000 (+0200) Subject: Adapt to new auxiliary stack argument of `libuksched` API X-Git-Tag: RELEASE-0.16.0~4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8b09bf34de858995055455df0d4d70231ed7207d;p=unikraft%2Flibs%2Flwip.git Adapt to new auxiliary stack argument of `libuksched` API Now all thread creation related functions also require an auxiliary stack-related argument: either a pointer to it or its desired length. Thus, provide argument 0 for length of auxiliary stack, allowing the allocation to use the default length. Signed-off-by: Sergiu Moga Reviewed-by: Michalis Pappas Approved-by: Razvan Deaconescu GitHub-Closes: #41 --- diff --git a/threads.c b/threads.c index ea7f008..f431256 100644 --- a/threads.c +++ b/threads.c @@ -53,7 +53,7 @@ sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, t = uk_sched_thread_create_fn1(s, (uk_thread_fn1_t) thread, arg, - (size_t) stacksize, + (size_t) stacksize, 0, false, false, name,