X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Finclude%2Fproc.h;h=0a1d754863296692ba881d5f359e584f9b4b6403;hb=53436af44ded8bc345d4d3d1a9fe25de4d6f23bc;hp=6619ec0de5ff3331e2b13f8d0207a604022f0f5d;hpb=f119d0e5b18b7286d04fc536a94e0f96e3c51714;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/include/proc.h b/Kernel/arch/x86/include/proc.h index 6619ec0d..0a1d7548 100644 --- a/Kernel/arch/x86/include/proc.h +++ b/Kernel/arch/x86/include/proc.h @@ -11,6 +11,15 @@ #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();