mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 07:08:18 +00:00
committed by
Christian Helmuth
parent
b72503e581
commit
eafbfb8edf
@ -64,13 +64,13 @@ Dataspace_component::Dataspace_component(const char *args)
|
|||||||
: _fname(_file_name(args)),
|
: _fname(_file_name(args)),
|
||||||
_size(_file_size()),
|
_size(_file_size()),
|
||||||
_addr(0),
|
_addr(0),
|
||||||
_fd(lx_open(_fname.buf, O_RDONLY | LX_O_CLOEXEC, S_IRUSR | S_IXUSR)),
|
_cap(_fd_to_cap(lx_open(_fname.buf, O_RDONLY | LX_O_CLOEXEC, S_IRUSR | S_IXUSR))),
|
||||||
_writable(false),
|
_writable(false),
|
||||||
_owner(0) { }
|
_owner(0) { }
|
||||||
|
|
||||||
Dataspace_component::Dataspace_component(size_t size, addr_t, addr_t phys_addr,
|
Dataspace_component::Dataspace_component(size_t size, addr_t, addr_t phys_addr,
|
||||||
Cache_attribute, bool writable, Dataspace_owner *_owner) :
|
Cache_attribute, bool writable, Dataspace_owner *_owner) :
|
||||||
_size(size), _addr(phys_addr), _fd(-1), _writable(writable), _owner(_owner)
|
_size(size), _addr(phys_addr), _cap(), _writable(writable), _owner(_owner)
|
||||||
{
|
{
|
||||||
_fname.buf[0] = 0;
|
_fname.buf[0] = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user