user thread/process and elf loader stub

This commit is contained in:
Matheus
2022-08-13 23:16:34 -03:00
parent e7f4245c6d
commit 33a516a611
14 changed files with 399 additions and 7 deletions
+2
View File
@@ -4,6 +4,7 @@
#include <sys/types.h>
#include <arch/regs.h>
#include <kernel/vfs.h>
#include <kernel/vmm.h>
#define THREAD_PRIORITY_INTERRUPT 0
#define THREAD_PRIORITY_KERNEL 1
@@ -37,6 +38,7 @@ typedef struct _proc_t{
pid_t pid;
gid_t gid;
uid_t uid;
vmm_context* context;
thread_t** threads;
size_t threadcount;
dirnode_t* root;