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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user