Uninitialized variable fix in VM to kernel protocol

- index must be initialized to 0 otherwise bad things happen like the mappings
  for local APIC are not correct after turning paging on.
This commit is contained in:
Tomas Hruby 2010-01-14 11:30:02 +00:00
parent 98563a4afa
commit d96360e4d4

View 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++;