mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
Some test to check wether a user-space cell can access the topology model and its cell infopage.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <base/env.h>
|
||||
#include <base/log.h>
|
||||
#include <timer_session/connection.h>
|
||||
#include <tukija/syscalls.h>
|
||||
|
||||
namespace Hoitaja_test
|
||||
{
|
||||
@@ -18,9 +19,16 @@ class Hoitaja_test::Empty_cell
|
||||
Empty_cell(Genode::Env &env) : _env(env)
|
||||
{
|
||||
Genode::log("Volatile dummy cell started.");
|
||||
Tukija::alloc();
|
||||
Genode::log("Found topology model of size ", Tukija::Tip::tip()->length, " mapped at ", static_cast<const void *>(Tukija::Tip::tip()));
|
||||
Tukija::Cip *cip = Tukija::Cip::cip();
|
||||
Genode::log("CIP value: ", *reinterpret_cast<unsigned long*>(cip));
|
||||
long pd_sel = _env.pd().native_pd().local_name();
|
||||
Genode::log("pd_sel = ", pd_sel);
|
||||
_timer.msleep(10000);
|
||||
Genode::log("Exiting..");
|
||||
_env.parent().exit(0);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user