mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 01:08:55 +00:00
Adapt low-level components to new parent interface
This patch adjusts the components of the os repository as well as device drivers to the new parent interface. Issue #2120
This commit is contained in:
committed by
Christian Helmuth
parent
cfdbccc5c2
commit
8bafb9d41b
@ -89,10 +89,7 @@ Lx::backend_alloc(Genode::addr_t size, Genode::Cache_attribute cached)
|
||||
cap = retry<Platform::Session::Out_of_metadata>(
|
||||
[&] () { return Lx::pci()->alloc_dma_buffer(size); },
|
||||
[&] () {
|
||||
char quota[32];
|
||||
Genode::snprintf(quota, sizeof(quota), "ram_quota=%ld",
|
||||
donate);
|
||||
Genode::env()->parent()->upgrade(Lx::pci()->cap(), quota);
|
||||
Lx::pci()->upgrade_ram(donate);
|
||||
donate = donate * 2 > size ? 4096 : donate * 2;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user