hw: remove deprecated TLB declaration

fix #1320
This commit is contained in:
Martin Stein
2014-12-11 16:09:00 +01:00
committed by Christian Helmuth
parent cdaf6a502d
commit 9c027fd9bd
5 changed files with 12 additions and 12 deletions

View File

@ -27,7 +27,6 @@
namespace Genode namespace Genode
{ {
class Platform_thread; class Platform_thread;
class Tlb;
typedef unsigned Native_thread_id; typedef unsigned Native_thread_id;

View File

@ -21,12 +21,10 @@ namespace Genode
{ {
class Native_utcb; class Native_utcb;
class Platform_pd; class Platform_pd;
class Tlb;
} }
namespace Kernel namespace Kernel
{ {
typedef Genode::Tlb Tlb;
typedef Genode::addr_t addr_t; typedef Genode::addr_t addr_t;
typedef Genode::size_t size_t; typedef Genode::size_t size_t;
typedef Genode::Platform_pd Platform_pd; typedef Genode::Platform_pd Platform_pd;

View File

@ -141,12 +141,15 @@ namespace Kernel
* \param cpu_id kernel name of the targeted CPU * \param cpu_id kernel name of the targeted CPU
* \param pd_id kernel name of the targeted domain * \param pd_id kernel name of the targeted domain
* \param utcb core local pointer to userland thread-context * \param utcb core local pointer to userland thread-context
*
* \retval 0 suceeded
* \retval !=0 failed
*/ */
inline Tlb * start_thread(unsigned const thread_id, unsigned const cpu_id, inline int start_thread(unsigned const thread_id, unsigned const cpu_id,
unsigned const pd_id, Native_utcb * const utcb) unsigned const pd_id, Native_utcb * const utcb)
{ {
return (Tlb *)call(call_id_start_thread(), thread_id, cpu_id, pd_id, return call(call_id_start_thread(), thread_id, cpu_id, pd_id,
(Call_arg)utcb); (Call_arg)utcb);
} }

View File

@ -295,26 +295,26 @@ void Thread::_call_start_thread()
Thread * const thread = Thread::pool()->object(user_arg_1()); Thread * const thread = Thread::pool()->object(user_arg_1());
if (!thread) { if (!thread) {
PWRN("failed to lookup thread"); PWRN("failed to lookup thread");
user_arg_0(0); user_arg_0(-1);
return; return;
} }
/* lookup CPU */ /* lookup CPU */
Cpu * const cpu = cpu_pool()->cpu(user_arg_2()); Cpu * const cpu = cpu_pool()->cpu(user_arg_2());
if (!cpu) { if (!cpu) {
PWRN("failed to lookup CPU"); PWRN("failed to lookup CPU");
user_arg_0(0); user_arg_0(-2);
return; return;
} }
/* lookup domain */ /* lookup domain */
Pd * const pd = Pd::pool()->object(user_arg_3()); Pd * const pd = Pd::pool()->object(user_arg_3());
if (!pd) { if (!pd) {
PWRN("failed to lookup domain"); PWRN("failed to lookup domain");
user_arg_0(0); user_arg_0(-3);
return; return;
} }
/* start thread */ /* start thread */
thread->init(cpu, pd, (Native_utcb *)user_arg_4(), 1); thread->init(cpu, pd, (Native_utcb *)user_arg_4(), 1);
user_arg_0((Call_ret)thread->_pd->translation_table()); user_arg_0(0);
} }

View File

@ -206,7 +206,7 @@ int Platform_thread::start(void * const ip, void * const sp)
unsigned const cpu = unsigned const cpu =
_location.valid() ? _location.xpos() : Cpu::primary_id(); _location.valid() ? _location.xpos() : Cpu::primary_id();
_utcb_core_addr->start_info()->init(_id, _utcb); _utcb_core_addr->start_info()->init(_id, _utcb);
if (!Kernel::start_thread(_id, cpu, _pd->id(), _utcb_core_addr)) { if (Kernel::start_thread(_id, cpu, _pd->id(), _utcb_core_addr)) {
PERR("failed to start thread"); PERR("failed to start thread");
return -1; return -1;
} }