base-hw mbi: do not copy Mmap MMIO objects

This commit is contained in:
Martin Stein
2017-03-06 13:33:43 +01:00
committed by Christian Helmuth
parent 5366c8cf7e
commit c5cb6cb410
2 changed files with 7 additions and 6 deletions

View File

@ -36,7 +36,7 @@ Platform::Board::Board()
static constexpr size_t initial_map_max = 1024 * 1024 * 1024;
for (unsigned i = 0; true; i++) {
Mmap v = Multiboot_info(__initial_bx).phys_ram(i);
Mmap v(Multiboot_info(__initial_bx).phys_ram_mmap_base(i));
if (!v.base) break;
Mmap::Addr::access_t base = v.read<Mmap::Addr>();