hw: remove 1:1 I/O mappings from virtual memory

Likewise on the x86 branch, we have to remove all virtual memory ranges from the
virtual memory allocator that are used by one-by-one mappings of I/O regions
used by the kernel.

Fix #1797
This commit is contained in:
Stefan Kalkowski 2015-12-02 11:15:46 +01:00 committed by Christian Helmuth
parent cffa4fddec
commit ee4619687b
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ void Platform::_init_io_mem_alloc()
Native_region * r = mmio_regions(0);
for (unsigned i = 0; r; r = mmio_regions(++i))
_io_mem_alloc.add_range(r->base, r->size);
r = mmio_regions(0);
for (unsigned i = 0; r; r = mmio_regions(++i))
_core_mem_alloc.virt_alloc()->remove_range(r->base, r->size);
};