mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
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:
committed by
Christian Helmuth
parent
cffa4fddec
commit
ee4619687b
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user