Flatten libs
All checks were successful
Build documentation / build-and-deploy (push) Successful in 44s

This commit is contained in:
2026-02-12 23:16:57 +01:00
parent ab758d8929
commit 28ceabdb72
18 changed files with 19 additions and 28 deletions

19
libprocess/process.c Normal file
View File

@@ -0,0 +1,19 @@
#include <liballoc.h>
#include <m/status.h>
#include <m/system.h>
#include <process.h>
#include <stddef.h>
#include <stdint.h>
int process_spawn (process_func_t func, void* argument_ptr) {
void* stack = malloc (STACK_SIZE);
if (stack == NULL)
return -ST_OOM_ERROR;
uintptr_t top = (uintptr_t)stack + STACK_SIZE;
return clone (top, func, argument_ptr);
}
int process_quit (void) { return quit (); }
void* process_argument (void) { return argument_ptr (); }