Skip to content

Commit

Permalink
Timer: make ram_quota and stack platform-dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
skalk authored and nfeske committed Sep 19, 2012
1 parent 2e1bfe5 commit 62d81ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion os/include/timer_session/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{ }
Expand Down
2 changes: 1 addition & 1 deletion os/src/drivers/timer/foc/timer_session_component.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62d81ae

Please sign in to comment.