]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Adapt to new auxiliary stack argument of `libuksched` API
authorSergiu Moga <sergiu@unikraft.io>
Sat, 9 Dec 2023 08:10:27 +0000 (10:10 +0200)
committerRazvan Deaconescu <razvand@unikraft.io>
Sat, 23 Dec 2023 13:05:07 +0000 (15:05 +0200)
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 <sergiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #41

threads.c

index ea7f008137105790eb4be7ae367a72a13557a570..f431256b568608c8ed10587b4dfca85ea01fce8d 100644 (file)
--- 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,