Kernel/x86_64 - Unbroke user stack creation
[tpg/acess2.git] / Kernel / arch / x86_64 / include / proc.h
index cf9a446..2173c34 100644 (file)
@@ -16,12 +16,12 @@ typedef struct {
        Uint    FS, GS;
        
        Uint    RAX, RCX, RDX, RBX;
-    Uint       KernelRSP, RBP, RSI, RDI;
+       Uint    KernelRSP, RBP, RSI, RDI;
        Uint    R8,  R9,  R10, R11;
        Uint    R12, R13, R14, R15;
        
-    Uint       IntNum, ErrorCode;
-    Uint       RIP, CS;
+       Uint    IntNum, ErrorCode;
+       Uint    RIP, CS;
        Uint    RFlags, RSP, SS;
 } tRegs;
 
@@ -38,11 +38,13 @@ typedef struct sMemoryState
  */
 typedef struct sTaskState
 {
-       Uint    RIP, RSP, RBP;
+       Uint    RIP, RSP;
+       Uint64  UserRIP, UserCS;
 }      tTaskState;
 
 // === CONSTANTS ===
-#define KERNEL_STACK_SIZE      0x10000 // 64 KiB
+#define KERNEL_STACK_SIZE      0x8000  // 32 KiB
+//#define KERNEL_STACK_SIZE    0x10000 // 64 KiB
 
 #endif
 

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