mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 06:33:31 +00:00
Fix noux.run on base-linux
The recent move of the initial three region maps into the PD session breaks the noux.run test on Linux because the address spaces are locally managed on this platform but the generic code of Noux still tries to execute the regular procedure of creating the virtualized PD session for a new Noux process. This patch handles a corner case that occurs on Linux but no other platform. It enables the successful creation of the virtualized PD session so that the test runs to completion. Still noux on Linux remains to be limited to non-forking programs. Issue #1938
This commit is contained in:
parent
dccad4c526
commit
cb232891bf
@ -65,5 +65,5 @@ Region_map::State Region_map_client::state() { return _local(*this)->state(); }
|
||||
|
||||
|
||||
Dataspace_capability Region_map_client::dataspace() {
|
||||
return _local(*this)->dataspace(); }
|
||||
return _local(*this) ? _local(*this)->dataspace() : Dataspace_capability(); }
|
||||
|
||||
|
@ -44,7 +44,7 @@ namespace Noux {
|
||||
Dataspace_info(Dataspace_capability ds_cap)
|
||||
:
|
||||
Object_pool<Dataspace_info>::Entry(ds_cap),
|
||||
_size(Dataspace_client(ds_cap).size()),
|
||||
_size(ds_cap.valid() ? Dataspace_client(ds_cap).size() : 0),
|
||||
_ds_cap(ds_cap)
|
||||
{ }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user