mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 18:18:54 +00:00
parent
4359b99c4f
commit
dc8cbbf022
@ -62,7 +62,7 @@ namespace Genode
|
||||
/**
|
||||
* Message that is communicated from a thread creator to the new thread
|
||||
*/
|
||||
class Startup_msg;
|
||||
class Start_info;
|
||||
|
||||
/**
|
||||
* Memory region that is exclusive to every thread and known by the kernel
|
||||
@ -227,7 +227,7 @@ class Genode::Message
|
||||
}
|
||||
};
|
||||
|
||||
class Genode::Startup_msg
|
||||
class Genode::Start_info
|
||||
{
|
||||
private:
|
||||
|
||||
@ -257,7 +257,7 @@ struct Genode::Native_utcb
|
||||
union {
|
||||
uint8_t data[SIZE];
|
||||
Message<SIZE> message;
|
||||
Startup_msg startup_msg;
|
||||
Start_info start_info;
|
||||
};
|
||||
|
||||
size_t size() const { return SIZE; }
|
||||
|
@ -21,5 +21,5 @@
|
||||
void Genode::Thread_base::_thread_bootstrap()
|
||||
{
|
||||
Native_utcb * const utcb = Thread_base::myself()->utcb();
|
||||
_tid.thread_id = utcb->startup_msg.thread_id();
|
||||
_tid.thread_id = utcb->start_info.thread_id();
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ extern "C" void kernel()
|
||||
static Native_utcb utcb;
|
||||
static Thread t(Priority::MAX, "core");
|
||||
_main_thread_utcb = &utcb;
|
||||
_main_thread_utcb->startup_msg.init(t.id());
|
||||
_main_thread_utcb->start_info.init(t.id());
|
||||
t.ip = (addr_t)CORE_MAIN;;
|
||||
t.sp = (addr_t)s + STACK_SIZE;
|
||||
t.init(0, core_id(), &utcb, 1);
|
||||
|
@ -201,7 +201,7 @@ int Platform_thread::start(void * const ip, void * const sp,
|
||||
return -1;
|
||||
}
|
||||
/* start executing new thread */
|
||||
_utcb_phys->startup_msg.init(_id);
|
||||
_utcb_phys->start_info.init(_id);
|
||||
_tlb = Kernel::start_thread(_id, cpu_id, _pd_id, _utcb_phys);
|
||||
if (!_tlb) {
|
||||
PERR("failed to start thread");
|
||||
|
@ -36,7 +36,7 @@ void Genode::platform_main_bootstrap()
|
||||
static bool main_thread_id_valid = 0;
|
||||
if (!main_thread_id_valid) {
|
||||
Native_utcb * const utcb = Thread_base::myself()->utcb();
|
||||
_main_thread_id = utcb->startup_msg.thread_id();
|
||||
_main_thread_id = utcb->startup_info.thread_id();
|
||||
main_thread_id_valid = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user