base: enforce ram_quota donations to be consistent

For several basic sessions that core provides default ram quota values
exist in the form of enum values. They are used e.g. by init to deduce
session costs. Unfortunately they were not used when actually establishing
the session, which lead to inconsistencies.

Ref #1443
This commit is contained in:
Stefan Kalkowski
2015-05-19 14:14:52 +02:00
committed by Christian Helmuth
parent a93266548f
commit 554146d39c
4 changed files with 9 additions and 9 deletions

View File

@ -32,8 +32,8 @@ struct Genode::Rm_connection : Connection<Rm_session>, Rm_session_client
*/
Rm_connection(addr_t start = ~0UL, size_t size = 0) :
Connection<Rm_session>(
session("ram_quota=64K, start=0x%p, size=0x%zx",
start, size)),
session("ram_quota=%u, start=0x%p, size=0x%zx",
RAM_QUOTA, start, size)),
Rm_session_client(cap()) { }
};