4 * proc.h - Process/Thread management code
12 // TODO: Rebuild once IDT code is done
18 Uint RAX, RCX, RDX, RBX;
19 Uint KernelRSP, RBP, RSI, RDI;
20 Uint R8, R9, R10, R11;
21 Uint R12, R13, R14, R15;
23 Uint IntNum, ErrorCode;
29 * \brief Memory State for thread handler
31 typedef struct sMemoryState
37 * \brief Task state for thread handler
39 typedef struct sTaskState
42 Uint64 UserRIP, UserCS;
46 #define KERNEL_STACK_SIZE 0x8000 // 32 KiB
47 //#define KERNEL_STACK_SIZE 0x10000 // 64 KiB