slight change to memory map
[tpg/acess2.git] / Kernel / arch / x86_64 / include / proc.h
index 016375f..8217c68 100644 (file)
@@ -8,11 +8,29 @@
 
 #include <arch.h>
 
+// Register Structure
+// TODO: Rebuild once IDT code is done
+typedef struct {
+       Uint    rax, rcx, rdx, rbx;
+    Uint       krsp, rbp, rsi, rdi;
+       Uint    r8, r9, r10, r11;
+       Uint    r12, r13, r14, r15;
+    Uint       int_num, err_code;
+    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