1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef _JOVE_x86_64_OBJECT_H #define _JOVE_x86_64_OBJECT_H 1 #include <stdint.h> #ifndef KERNEL_STACKBYTES #define KERNEL_STACKBYTES 4096 #endif typedef struct jove_ThreadControlBlock { void *stack; uintptr_t sp, ksp; void *pml4; void *mailbox; /* PML caching for faster calls?*/ uint8_t kstack[KERNEL_STACKBYTES]; } tcb_t; #endif