genode/repos/base-hw/src/core/spec/arm_v7/kernel/vm_thread.cc
Stefan Kalkowski b32af4e0a4 hw: directly reference kernel objects from core
Instead of handing over object ids to the kernel, which has to find them
in object pools then, core can simply use object pointers to reference
kernel objects.

Ref #1443
2015-04-17 16:13:20 +02:00

37 lines
677 B
C++

/*
* \brief Kernel backend for virtual machines
* \author Stefan Kalkowski
* \date 2015-02-10
*/
/*
* Copyright (C) 2015 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
/* core includes */
#include <kernel/thread.h>
#include <kernel/vm.h>
void Kernel::Thread::_call_delete_vm()
{
reinterpret_cast<Vm*>(user_arg_1())->~Vm();
user_arg_0(0);
}
void Kernel::Thread::_call_run_vm()
{
reinterpret_cast<Vm*>(user_arg_1())->run();
user_arg_0(0);
}
void Kernel::Thread::_call_pause_vm()
{
reinterpret_cast<Vm*>(user_arg_1())->pause();
user_arg_0(0);
}