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:
parent
98563a4afa
commit
d96360e4d4
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue