52c52
< __FBSDID("$FreeBSD: head/sys/powerpc/booke/pmap.c 209495 2010-06-24 05:47:00Z marcel $");
---
> __FBSDID("$FreeBSD: head/sys/powerpc/booke/pmap.c 209908 2010-07-11 21:08:29Z raj $");
80d79
< #include <machine/bootinfo.h>
2510d2508
< struct bi_mem_region *mr;
2568c2566,2568
< mr = bootinfo_mr();
---
> mem_regions(&physmem_regions, &physmem_regions_sz,
> &availmem_regions, &availmem_regions_sz);
>
2571,2572c2571,2572
< md.md_paddr = mr->mem_base;
< md.md_size = mr->mem_size;
---
> md.md_paddr = physmem_regions[0].mr_start;
> md.md_size = physmem_regions[0].mr_size;
2575,2577c2575,2577
< } else if (md.md_index < bootinfo->bi_mem_reg_no) {
< md.md_paddr = mr[md.md_index].mem_base;
< md.md_size = mr[md.md_index].mem_size;
---
> } else if (md.md_index < physmem_regions_sz) {
> md.md_paddr = physmem_regions[md.md_index].mr_start;
> md.md_size = physmem_regions[md.md_index].mr_size;
< __FBSDID("$FreeBSD: head/sys/powerpc/booke/pmap.c 209495 2010-06-24 05:47:00Z marcel $");
---
> __FBSDID("$FreeBSD: head/sys/powerpc/booke/pmap.c 209908 2010-07-11 21:08:29Z raj $");
80d79
< #include <machine/bootinfo.h>
2510d2508
< struct bi_mem_region *mr;
2568c2566,2568
< mr = bootinfo_mr();
---
> mem_regions(&physmem_regions, &physmem_regions_sz,
> &availmem_regions, &availmem_regions_sz);
>
2571,2572c2571,2572
< md.md_paddr = mr->mem_base;
< md.md_size = mr->mem_size;
---
> md.md_paddr = physmem_regions[0].mr_start;
> md.md_size = physmem_regions[0].mr_size;
2575,2577c2575,2577
< } else if (md.md_index < bootinfo->bi_mem_reg_no) {
< md.md_paddr = mr[md.md_index].mem_base;
< md.md_size = mr[md.md_index].mem_size;
---
> } else if (md.md_index < physmem_regions_sz) {
> md.md_paddr = physmem_regions[md.md_index].mr_start;
> md.md_size = physmem_regions[md.md_index].mr_size;