nova: support setting affinity via cpu session

issue #814
This commit is contained in:
Alexander Boettcher 2013-07-08 08:51:57 +02:00 committed by Norman Feske
parent 435b8dd252
commit e171683b8c
1 changed files with 6 additions and 1 deletions

View File

@ -37,7 +37,12 @@ using namespace Genode;
void Platform_thread::affinity(unsigned int cpu_no)
{
PERR("not yet implemented");
if (_sel_exc_base != Native_thread::INVALID_INDEX) {
PERR("Failure - affinity of thread could not be set");
return;
}
_cpu_no = cpu_no;
}