Kernel+LibC: Add a simple create_thread() syscall.

It takes two parameters, a function pointer for the entry function,
and a void* argument to be passed to that function on the new thread.
This commit is contained in:
Andreas Kling 2019-03-23 22:59:08 +01:00
commit e561ab1b0b
Notes: sideshowbarker 2024-07-19 14:57:49 +09:00
10 changed files with 45 additions and 5 deletions

View file

@ -116,7 +116,8 @@ public:
void set_default_signal_dispositions();
void push_value_on_stack(dword);
void make_userspace_stack(Vector<String> arguments, Vector<String> environment);
void make_userspace_stack_for_main_thread(Vector<String> arguments, Vector<String> environment);
void make_userspace_stack_for_secondary_thread(void* argument);
Thread* clone(Process&);