mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
parent
4b6b759739
commit
9ada3d3178
@ -42,6 +42,8 @@ void Platform_pd::unbind_thread(Platform_thread *thread)
|
||||
int Platform_pd::assign_parent(Native_capability parent)
|
||||
{
|
||||
if (_parent.valid()) return -1;
|
||||
if (!parent.valid()) return -2;
|
||||
|
||||
_parent = parent;
|
||||
return 0;
|
||||
}
|
||||
|
@ -57,7 +57,8 @@ int Platform_thread::start(void *ip, void *sp)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!_pd) {
|
||||
if (!_pd || (is_main_thread() && !is_vcpu() &&
|
||||
_pd->parent_pt_sel() == Native_thread::INVALID_INDEX)) {
|
||||
PERR("protection domain undefined");
|
||||
return -2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user