hw: rename Startup_msg in Start_info

ref #958
This commit is contained in:
Martin Stein 2013-11-21 17:04:05 +01:00 committed by Norman Feske
parent 4359b99c4f
commit dc8cbbf022
5 changed files with 7 additions and 7 deletions

View File

@ -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; }

View File

@ -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();
}

View File

@ -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);

View File

@ -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");

View File

@ -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;
}
}