Propagate status code of Thread state and start

This commit is contained in:
Alexander Boettcher 2012-08-08 13:17:28 +02:00 committed by Norman Feske
parent ddd4b9633d
commit 7aa75477e2
1 changed files with 2 additions and 4 deletions

View File

@ -111,8 +111,7 @@ int Cpu_session_component::start(Thread_capability thread_cap,
Cpu_thread_component *thread = _lookup_thread(thread_cap);
if (!thread) return -1;
thread->platform_thread()->start((void *)ip, (void *)sp);
return 0;
return thread->platform_thread()->start((void *)ip, (void *)sp);
}
@ -149,8 +148,7 @@ int Cpu_session_component::state(Thread_capability thread_cap,
Cpu_thread_component *thread = _lookup_thread(thread_cap);
if (!thread) return -1;
thread->platform_thread()->state(state_dst);
return 0;
return thread->platform_thread()->state(state_dst);
}