mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 07:08:18 +00:00
committed by
Christian Helmuth
parent
15141f3ca7
commit
807be83b1b
@ -301,7 +301,7 @@ void Child::notify_resource_avail() const
|
||||
|
||||
void Child::announce(Parent::Service_name const &name, Root_capability root)
|
||||
{
|
||||
if (!name.is_valid_string()) return;
|
||||
if (!name.valid_string()) return;
|
||||
|
||||
_policy.announce_service(name.string(), root, heap(), &_server);
|
||||
}
|
||||
@ -311,7 +311,7 @@ Session_capability Child::session(Parent::Service_name const &name,
|
||||
Parent::Session_args const &args,
|
||||
Affinity const &affinity)
|
||||
{
|
||||
if (!name.is_valid_string() || !args.is_valid_string()) throw Unavailable();
|
||||
if (!name.valid_string() || !args.valid_string()) throw Unavailable();
|
||||
|
||||
/* return sessions that we created for the child */
|
||||
if (!strcmp("Env::ram_session", name.string())) return _ram;
|
||||
@ -382,7 +382,7 @@ void Child::upgrade(Session_capability to_session, Parent::Upgrade_args const &a
|
||||
return;
|
||||
}
|
||||
|
||||
if (!args.is_valid_string()) {
|
||||
if (!args.valid_string()) {
|
||||
PWRN("no valid session-upgrade arguments");
|
||||
return;
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ Child::Process::Loaded_executable::Loaded_executable(Dataspace_capability elf_ds
|
||||
* If the specified executable is a dynamically linked program, we load
|
||||
* the dynamic linker instead.
|
||||
*/
|
||||
if (elf.is_dynamically_linked()) {
|
||||
if (elf.dynamically_linked()) {
|
||||
|
||||
local_rm.detach(elf_addr);
|
||||
|
||||
|
@ -108,7 +108,7 @@ Heap::Dataspace *Heap::_allocate_dataspace(size_t size, bool enforce_separate_me
|
||||
_alloc->add_range((addr_t)ds_addr, size);
|
||||
|
||||
/* allocate the Dataspace structure */
|
||||
if (_alloc->alloc_aligned(sizeof(Heap::Dataspace), &ds_meta_data_addr, log2(sizeof(addr_t))).is_error()) {
|
||||
if (_alloc->alloc_aligned(sizeof(Heap::Dataspace), &ds_meta_data_addr, log2(sizeof(addr_t))).error()) {
|
||||
PWRN("could not allocate dataspace meta data - this should never happen");
|
||||
return 0;
|
||||
}
|
||||
@ -125,7 +125,7 @@ Heap::Dataspace *Heap::_allocate_dataspace(size_t size, bool enforce_separate_me
|
||||
|
||||
bool Heap::_try_local_alloc(size_t size, void **out_addr)
|
||||
{
|
||||
if (_alloc->alloc_aligned(size, out_addr, log2(sizeof(addr_t))).is_error())
|
||||
if (_alloc->alloc_aligned(size, out_addr, log2(sizeof(addr_t))).error())
|
||||
return false;
|
||||
|
||||
_quota_used += size;
|
||||
|
@ -192,11 +192,11 @@ Trace::Logger *Thread::_logger()
|
||||
: main_trace_logger();
|
||||
|
||||
/* logger is already being initialized */
|
||||
if (logger->is_init_pending())
|
||||
if (logger->init_pending())
|
||||
return logger;
|
||||
|
||||
/* lazily initialize trace object */
|
||||
if (!logger->is_initialized()) {
|
||||
if (!logger->initialized()) {
|
||||
logger->init_pending(true);
|
||||
|
||||
Thread_capability thread_cap = myself ? myself->_thread_cap
|
||||
|
@ -87,11 +87,11 @@ class Linker::Rm_area
|
||||
{
|
||||
addr_t addr = vaddr;
|
||||
|
||||
if (addr && (_range.alloc_addr(size, addr).is_error()))
|
||||
if (addr && (_range.alloc_addr(size, addr).error()))
|
||||
throw Region_conflict();
|
||||
else if (!addr &&
|
||||
_range.alloc_aligned(size, (void **)&addr,
|
||||
get_page_size_log2()).is_error())
|
||||
get_page_size_log2()).error())
|
||||
{
|
||||
throw Region_conflict();
|
||||
}
|
||||
|
Reference in New Issue
Block a user