More work on error and interrupt handling (almost got it working)
[tpg/acess2.git] / Kernel / arch / x86_64 / include / proc.h
index 016375f..2672ca1 100644 (file)
@@ -8,11 +8,34 @@
 
 #include <arch.h>
 
+// Register Structure
+// TODO: Rebuild once IDT code is done
+typedef struct {
+       // MMX
+       // FPU
+       Uint    FS, GS;
+       
+       Uint    RAX, RCX, RDX, RBX;
+    Uint       KernelRSP, RBP, RSI, RDI;
+       Uint    R8,  R9,  R10, R11;
+       Uint    R12, R13, R14, R15;
+       
+    Uint       IntNum, ErrorCode;
+    Uint       RIP, CS;
+       Uint    RFlags, RSP, SS;
+} tRegs;
+
+/**
+ * \brief Memory State for thread handler
+ */
 typedef struct sMemoryState
 {
        tPAddr  CR3;
 }      tMemoryState;
 
+/**
+ * \brief Task state for thread handler
+ */
 typedef struct sTaskState
 {
        Uint    RIP, RSP, RBP;

UCC git Repository :: git.ucc.asn.au