Kernel/x86_64 - Fixed garbage TIDs before threading init is called
authorJohn Hodge <[email protected]>
Thu, 9 Aug 2012 16:30:57 +0000 (00:30 +0800)
committerJohn Hodge <[email protected]>
Thu, 9 Aug 2012 16:30:57 +0000 (00:30 +0800)
KernelLand/Kernel/arch/x86_64/proc.c

index 518bef3..18cfd02 100644 (file)
@@ -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 ---

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