io_port_session: make default ram quota explicit

Ref genodelabs/genode#4436
This commit is contained in:
Stefan Kalkowski 2022-03-01 17:03:24 +01:00
parent d45b60ceeb
commit 8a4cbe3cc9
2 changed files with 5 additions and 5 deletions

View File

@ -30,8 +30,8 @@ struct Genode::Io_port_connection : Connection<Io_port_session>,
*/
Capability<Io_port_session> _session(Parent &parent, unsigned base, unsigned size)
{
return session(parent, "ram_quota=6K, cap_quota=%u, io_port_base=%u, io_port_size=%u",
CAP_QUOTA, base, size);
return session(parent, "ram_quota=%u, cap_quota=%u, io_port_base=%u, io_port_size=%u",
RAM_QUOTA, CAP_QUOTA, base, size);
}
/**
@ -44,9 +44,9 @@ struct Genode::Io_port_connection : Connection<Io_port_session>,
:
Connection<Io_port_session>(env,
session(env.parent(),
"ram_quota=6K, cap_quota=%u, "
"ram_quota=%u, cap_quota=%u, "
"io_port_base=%u, io_port_size=%u",
CAP_QUOTA, base, size)),
RAM_QUOTA, CAP_QUOTA, base, size)),
Io_port_session_client(cap())
{ }
};

View File

@ -38,7 +38,7 @@ struct Genode::Io_port_session : Session
*/
static const char *service_name() { return "IO_PORT"; }
enum { CAP_QUOTA = 2 };
enum { RAM_QUOTA = 6 * 1024, CAP_QUOTA = 2 };
virtual ~Io_port_session() { }