mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 00:24:51 +00:00
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:
parent
87bb81cd66
commit
43ef9b5a3a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user