Environment variables WIP, fix waiting scheduling issues + CE cancel proc
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m24s

This commit is contained in:
2026-03-17 00:01:15 +01:00
parent 1b1e1e4954
commit b1648a146a
11 changed files with 91 additions and 54 deletions

View File

@@ -2,6 +2,7 @@ include ../make/ufuncs.mk
$(eval $(call add_include,libsystem))
$(eval $(call add_include,libmalloc))
$(eval $(call add_include,libdebugconsole))
libname := libprocess

View File

@@ -1,3 +1,4 @@
#include <debugconsole.h>
#include <malloc.h>
#include <map.h>
#include <page_size.h>
@@ -21,6 +22,7 @@ struct process_data* process_spawn (process_func_t func, void* argument_ptr) {
return NULL;
}
pdata->stack = stack;
pdata->arg_ptr = argument_ptr;
pdata->fn = func;
@@ -36,3 +38,8 @@ struct process_data* process_spawn (process_func_t func, void* argument_ptr) {
pdata->pid = pid;
return pdata;
}
void process_data_free (struct process_data* pdata) {
free (pdata->stack);
free (pdata);
}

View File

@@ -14,9 +14,12 @@ struct process_data {
void* arg_ptr;
process_func_t fn;
int pid;
void* stack;
};
/* Spawn a new process within the same procgroup with argument */
struct process_data* process_spawn (process_func_t func, void* argument_ptr);
void process_data_free (struct process_data* pdata);
#endif // _LIBPROCESS_PROCESS_PROCESS_H