Remove timer from hello run script (fix #629)

Currently, the hello run script of the hello_tutorial misses some services the
timer driver needs on various platforms. The hello_tutorial is meant for
educational purposes only. So it's desireable to keep it simple. Instead of
complexifying the configuration, this commit just removes the timer from the
example.
This commit is contained in:
Stefan Kalkowski 2013-01-22 12:36:13 +01:00 committed by Norman Feske
parent 04b8418b54
commit 4f69bd9fb8
2 changed files with 1 additions and 9 deletions

View File

@ -15,14 +15,11 @@ install_config {
<parent-provides>
<service name="CAP"/>
<service name="LOG"/>
<service name="RM"/>
</parent-provides>
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>
<start name="timer">
<resource name="RAM" quantum="1M"/>
<provides><service name="Timer"/></provides>
</start>
<start name="hello_server">
<resource name="RAM" quantum="1M"/>
<provides><service name="Hello"/></provides>

View File

@ -14,7 +14,6 @@
#include <base/env.h>
#include <base/printf.h>
#include <hello_session/client.h>
#include <timer_session/connection.h>
#include <hello_session/connection.h>
using namespace Genode;
@ -23,15 +22,11 @@ int main(void)
{
Hello::Connection h;
Timer::Connection timer;
while (1) {
h.say_hello();
timer.msleep(1000);
int foo = h.add(2, 5);
PDBG("Added 2 + 5 = %d", foo);
timer.msleep(1000);
}
return 0;