]> Zhao Yanbai Git Server - minix.git/commitdiff
Uninitialized variable fix in VM to kernel protocol
authorTomas Hruby <tom@minix3.org>
Thu, 14 Jan 2010 11:30:02 +0000 (11:30 +0000)
committerTomas Hruby <tom@minix3.org>
Thu, 14 Jan 2010 11:30:02 +0000 (11:30 +0000)
- index must be initialized to 0 otherwise bad things happen like the mappings
  for local APIC are not correct after turning paging on.

servers/vm/i386/pagetable.c

index 7479948d3617bf7150adc32200b02379bec81c70..f2019f4bf4505b1d84e370687617f832663fd46e 100644 (file)
@@ -785,7 +785,7 @@ PUBLIC void pt_init(phys_bytes usedlimit)
        {
                int kernmap_pde;
                phys_bytes addr, len;
-               int flags, index;
+               int flags, index = 0;
                u32_t offset = 0;
 
                kernmap_pde = free_pde++;