Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/aim/mmu_radix.c
Show First 20 Lines • Show All 2,060 Lines • ▼ Show 20 Lines | mmu_radix_late_bootstrap(vm_offset_t start, vm_offset_t end) | ||||
if (bootverbose) | if (bootverbose) | ||||
printf("%s enter\n", __func__); | printf("%s enter\n", __func__); | ||||
/* | /* | ||||
* Calculate the last available physical address, and reserve the | * Calculate the last available physical address, and reserve the | ||||
* vm_page_array (upper bound). | * vm_page_array (upper bound). | ||||
*/ | */ | ||||
Maxmem = 0; | Maxmem = 0; | ||||
for (i = 0; phys_avail[i + 2] != 0; i += 2) | for (i = 0; phys_avail[i + 1] != 0; i += 2) | ||||
Maxmem = MAX(Maxmem, powerpc_btop(phys_avail[i + 1])); | Maxmem = MAX(Maxmem, powerpc_btop(phys_avail[i + 1])); | ||||
/* | /* | ||||
* Remap any early IO mappings (console framebuffer, etc.) | * Remap any early IO mappings (console framebuffer, etc.) | ||||
*/ | */ | ||||
bs_remap_earlyboot(); | bs_remap_earlyboot(); | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 4,385 Lines • Show Last 20 Lines |