in the middle of clearing page tables allocated during mm_map() and mm_early_map()
git-svn-id: svn://anubis/hos/trunk@99 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
d41ffbbedc
commit
ae5dc7df6f
@ -248,6 +248,12 @@ int mm_early_map(u32_t virtual_address, u32_t physical_address,
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
pagedirectory_entry_t * page_table_virt = (pagedirectory_entry_t *)
|
||||
(page_table_phys + KERNEL_OFFSET);
|
||||
for (int i = 0; i < NUM_PAGETABLE_ENTRIES; i++)
|
||||
{
|
||||
page_table_virt[i] = 0;
|
||||
}
|
||||
(*early_page_directory_ptr)[directory_index] = page_table_phys
|
||||
| 0x1 << 2 /* PTs can be user mode */
|
||||
| 0x1 << 1 /* writable */
|
||||
@ -291,6 +297,7 @@ int mm_map(u32_t virtual_address, u32_t physical_address,
|
||||
| 0x1 << 2 /* PTs can be user mode */
|
||||
| 0x1 << 1 /* writable */
|
||||
| 0x1; /* present */
|
||||
/* FIXME pagedirectory_entry_t * page_table = */
|
||||
}
|
||||
|
||||
pagedirectory_entry_t * page_table_entry = (pagedirectory_entry_t *)
|
||||
|
Loading…
x
Reference in New Issue
Block a user