mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
base-hw: Fix bug in 'thread_resume' syscall.
This commit is contained in:
committed by
Norman Feske
parent
b7c1404fbf
commit
1b73f80350
@@ -1202,7 +1202,10 @@ namespace Kernel
|
||||
*/
|
||||
int resume()
|
||||
{
|
||||
assert (_state == AWAIT_RESUMPTION || _state == ACTIVE)
|
||||
if (_state != AWAIT_RESUMPTION && _state != ACTIVE) {
|
||||
PDBG("Unexpected thread state");
|
||||
return -1;
|
||||
}
|
||||
cpu_scheduler()->insert(this);
|
||||
if (_state == ACTIVE) return 1;
|
||||
_state = ACTIVE;
|
||||
|
||||
Reference in New Issue
Block a user