X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Finclude%2Fproc.h;h=baf9402c73559bd21b07cdd30b898288ae559f67;hb=43f12a083f112a410859597c5f45e78b1de2e7c8;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..baf9402c 100644 --- a/Kernel/arch/x86/include/proc.h +++ b/Kernel/arch/x86/include/proc.h @@ -7,10 +7,16 @@ #include -// === CONSTANTS === -#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 +31,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();