From b905869a35f062a4e5072f10bec3a2ba3db0e365 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 30 Jul 2025 14:32:01 -0400 Subject: working userland with some invoke syscalls --- include/tcb.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/tcb.h (limited to 'include/tcb.h') diff --git a/include/tcb.h b/include/tcb.h new file mode 100644 index 0000000..6545083 --- /dev/null +++ b/include/tcb.h @@ -0,0 +1,18 @@ +#ifndef _JOVE_TCB_H +#define _JOVE_TCB_H 1 + +#include +#include + +typedef struct jove_ThreadControlBlock +{ + uintmax_t id; + struct jove_ThreadControlBlock *children; + struct jove_ThreadControlBlock *next; + + void *stack; + uintptr_t sp, ksp; + void *pml4; +} tcb_t; + +#endif -- cgit v1.2.1