Annotate io_mem session interface with RAM_QUOTA

Ref #3299
This commit is contained in:
Stefan Kalkowski 2020-05-14 15:28:46 +02:00 committed by Christian Helmuth
parent e1333c9421
commit 6e6b671a66
2 changed files with 3 additions and 3 deletions

View File

@ -33,9 +33,9 @@ struct Genode::Io_mem_connection : Connection<Io_mem_session>, Io_mem_session_cl
:
Connection<Io_mem_session>(env,
session(env.parent(),
"cap_quota=%u, ram_quota=6K, "
"cap_quota=%u, ram_quota=%u, "
"base=0x%p, size=0x%lx, wc=%s",
CAP_QUOTA, base, size,
CAP_QUOTA, RAM_QUOTA, base, size,
write_combined ? "yes" : "no")),
Io_mem_session_client(cap())
{ }

View File

@ -41,7 +41,7 @@ struct Genode::Io_mem_session : Session
* session-object allocation, its session capability, and a dataspace
* capability for the handed-out memory-mapped I/O dataspace.
*/
enum { CAP_QUOTA = 3 };
enum { CAP_QUOTA = 3, RAM_QUOTA = 6 * 1024 };
virtual ~Io_mem_session() { }