Added mboot2 header
[tpg/acess2.git] / Kernel / arch / x86 / include / proc.h
index 6619ec0..0a1d754 100644 (file)
 #define GETMSG_IGNORE  ((void*)-1)
 
 // === TYPES ===
+#if USE_MP
+typedef struct sCPU
+{
+       Uint8   APICID;
+       Uint8   State;  // 0: Unavaliable, 1: Idle, 2: Active
+       Uint16  Resvd;
+       tThread *Current;
+}      tCPU;
+#endif
 
 typedef struct sTSS {
        Uint32  Link;
@@ -25,7 +34,7 @@ typedef struct sTSS {
        Uint32  ES, CS, DS, SS, FS, GS;
        Uint32  LDTR;
        Uint16  Resvd, IOPB;    // IO Permissions Bitmap
-} tTSS;
+} __attribute__((packed)) tTSS;
 
 // === FUNCTIONS ===
 extern void    Proc_Start();

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