Fix a typo

This code will go away anyway, but fix it for reference.
This commit is contained in:
François Revol 2012-03-26 23:38:14 +02:00
parent be06c5a53c
commit 6552b1085c

View File

@ -354,7 +354,7 @@ destroy_tmap(vm_translation_map *map)
return;
}
// suboptimal (done 8 times)
pgdir_pn = PRE_TO_PA(map->arch_data->rtdir_virt[i]);
pgdir_pn = PRE_TO_PN(map->arch_data->rtdir_virt[i]);
dirpage = vm_lookup_page(pgdir_pn);
pgdir = &(((page_directory_entry *)dirpage)[i%NUM_DIRTBL_PER_PAGE]);