Add Platform_thread::state() for seL4

This commit is contained in:
Alexander Weidinger
2019-05-07 19:03:11 +02:00
parent 1eefc8d42d
commit e53249f6ce

View File

@@ -198,10 +198,10 @@ void Platform_thread::resume()
} }
void Platform_thread::state(Thread_state) void Platform_thread::state(Thread_state s)
{ {
warning(__PRETTY_FUNCTION__, " not implemented"); if (_pager)
throw Cpu_thread::State_access_failed(); *static_cast<Thread_state *>(&_pager->state) = s;
} }