Timer: make ram_quota and stack platform-dependent

This commit is contained in:
Stefan Kalkowski 2012-09-19 12:32:33 +02:00 committed by Norman Feske
parent 2e1bfe5d9b
commit 62d81ae487
2 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,8 @@ namespace Timer {
* we donate two pages. One of them is used as stack for the
* timer thread and the other page holds the session meta data.
*/
Genode::Connection<Session>(session("ram_quota=8K")),
Genode::Connection<Session>(session("ram_quota=%zd",
sizeof(Genode::addr_t)*2048)),
Session_client(cap())
{ }

View File

@ -55,7 +55,7 @@ static Fiasco::l4_timeout_s mus_to_timeout(unsigned int mus)
namespace Timer {
enum { STACK_SIZE = 4096 };
enum { STACK_SIZE = 1024 * sizeof(Genode::addr_t) };
/**
* Timer session