mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-31 22:50:54 +00:00
parent
6a80b4bd17
commit
7c84d73d67
@ -113,7 +113,7 @@ class Platform::Connection : public Genode::Connection<Session>,
|
|||||||
|
|
||||||
Ram_dataspace_capability alloc_dma_buffer(size_t size, Cache cache) override
|
Ram_dataspace_capability alloc_dma_buffer(size_t size, Cache cache) override
|
||||||
{
|
{
|
||||||
return retry_with_upgrade(Ram_quota{size}, Cap_quota{2}, [&] () {
|
return retry_with_upgrade(Ram_quota{max((size_t)4096, size)}, Cap_quota{2}, [&] () {
|
||||||
return Client::alloc_dma_buffer(size, cache); });
|
return Client::alloc_dma_buffer(size, cache); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user