mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
io_port_session: make default ram quota explicit
Ref genodelabs/genode#4436
This commit is contained in:
parent
d45b60ceeb
commit
8a4cbe3cc9
@ -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())
|
||||
{ }
|
||||
};
|
||||
|
@ -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() { }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user