X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Finclude%2Fproc.h;h=5e3fadd91569741900b0d6ae0016fbdfc4a50226;hb=e29b02ca55d580b2f7f10d1093c3d6ad1bc59458;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..5e3fadd9 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,10 +31,10 @@ 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(); +extern void Proc_Start(void); extern int Proc_Clone(Uint *Err, Uint Flags); #endif