diff options
Diffstat (limited to 'include/tcb.h')
-rw-r--r-- | include/tcb.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stddef.h> +#include <stdint.h> + +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 |