MMU: Add in section L1 MMU size

* Not used atm, but exists.
This commit is contained in:
Alexander von Gluck IV
2012-05-22 09:07:29 -05:00
parent f0ba7f9400
commit 4fd190af6e
2 changed files with 18 additions and 7 deletions
@@ -241,17 +241,22 @@ mmu_write_DACR(uint32 value)
static uint32 *
get_next_page_table(uint32 type)
{
TRACE("%s: sNextPageTableAddress %p, kPageTableRegionEnd %p, type 0x%lx\n",
__func__, sNextPageTableAddress, kPageTableRegionEnd, type);
TRACE("%s: sNextPageTableAddress %p, kPageTableRegionEnd %p, "
"type 0x" B_PRIX32 "\n", __func__, sNextPageTableAddress,
kPageTableRegionEnd, type);
size_t size = 0;
switch(type) {
case MMU_L1_TYPE_COARSE:
default:
size = 1024;
break;
break;
case MMU_L1_TYPE_FINE:
size = 4096;
break;
break;
case MMU_L1_TYPE_SECTION:
size = 16384;
break;
}
addr_t address = sNextPageTableAddress;
+9 -3
View File
@@ -253,15 +253,21 @@ static uint32 *
get_next_page_table(uint32 type)
{
TRACE(("get_next_page_table, sNextPageTableAddress %p, kPageTableRegionEnd "
"%p, type 0x%lx\n", sNextPageTableAddress, kPageTableRegionEnd, type));
"%p, type 0x" B_PRIX32 "\n", sNextPageTableAddress,
kPageTableRegionEnd, type));
size_t size = 0;
switch(type) {
case MMU_L1_TYPE_COARSE:
default:
size = 1024;
break;
break;
case MMU_L1_TYPE_FINE:
size = 4096;
break;
break;
case MMU_L1_TYPE_SECTION:
size = 16384;
break;
}
addr_t address = sNextPageTableAddress;