From: John Hodge Date: Thu, 9 Aug 2012 16:30:57 +0000 (+0800) Subject: Kernel/x86_64 - Fixed garbage TIDs before threading init is called X-Git-Tag: rel0.15~706^2~45 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=2c42208fbd7541023dae7ec7515b19bd4bb057c5;p=tpg%2Facess2.git Kernel/x86_64 - Fixed garbage TIDs before threading init is called --- diff --git a/KernelLand/Kernel/arch/x86_64/proc.c b/KernelLand/Kernel/arch/x86_64/proc.c index 518bef3a..18cfd028 100644 --- a/KernelLand/Kernel/arch/x86_64/proc.c +++ b/KernelLand/Kernel/arch/x86_64/proc.c @@ -86,7 +86,9 @@ tMPInfo *gMPFloatPtr = NULL; tAPIC *gpMP_LocalAPIC = NULL; Uint8 gaAPIC_to_CPU[256] = {0}; #endif -tCPU gaCPUs[MAX_CPUS]; +tCPU gaCPUs[MAX_CPUS] = { + {.Current = &gThreadZero} + }; tTSS *gTSSs = NULL; tTSS gTSS0 = {0}; // --- Error Recovery ---