prompmd = __alloc_bootmem(OBP_PMD_SIZE, OBP_PMD_SIZE, bootmap_base); if (prompmd == NULL) early_pgtable_allocfail("pmd"); memset(prompmd, 0, OBP_PMD_SIZE);
prom_pmd_phys = early_alloc_phys(OBP_PMD_SIZE); for (i = 0; i < OBP_PMD_SIZE; i += 4) store_phys32(prom_pmd_phys + i, 0);
static void build_obp_pgtable(int prom_trans_ents){	int i;	prompmd = __alloc_bootmem(OBP_PMD_SIZE, OBP_PMD_SIZE,				  bootmap_base);	if (prompmd == NULL)		early_pgtable_allocfail("pmd");	memset(prompmd, 0, OBP_PMD_SIZE);	for (i = 0; i < prom_trans_ents; i++) {		unsigned long start, end;		if (!in_obp_range(prom_trans[i].virt))			continue;		start = prom_trans[i].virt;		end = start + prom_trans[i].size;		if (end > HI_OBP_ADDRESS)			end = HI_OBP_ADDRESS;		build_obp_range(start, end, prom_trans[i].data);	}	prom_pmd_phys = __pa(prompmd);}