platform_drv: do not account IOMEM as ram quota

Accidentally, the size of IOMEM dataspace got accounted within the
implementation of the platform driver for ARM. Instead we should
only account a bit for the metadata and paging of the I/O memory.

Fix #4307
This commit is contained in:
Stefan Kalkowski 2021-11-02 11:46:13 +01:00 committed by Christian Helmuth
parent 87bb81cd66
commit 43ef9b5a3a

View File

@ -161,8 +161,8 @@ Genode::size_t Driver::Device::_cap_quota_required()
Genode::size_t Driver::Device::_ram_quota_required()
{
size_t total = 0;
_io_mem_list.for_each([&] (Io_mem & io_mem) {
total += io_mem.size + 2*1024; });
_io_mem_list.for_each([&] (Io_mem &) {
total += 4096; });
return total;
}