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
36 // 512 bytes, 16 byte aligned
37 typedef struct sSSEState
43 * \brief Task state for thread handler
45 typedef struct sTaskState
48 Uint64 UserRIP, UserCS;
54 #define KERNEL_STACK_SIZE 0x8000 // 32 KiB
55 //#define KERNEL_STACK_SIZE 0x10000 // 64 KiB