Coding style fixes
This commit is contained in:
parent
e5b30847db
commit
c2a8c48574
|
@ -1,4 +1,4 @@
|
||||||
/**
|
/*
|
||||||
* \brief Core implementation of the CPU session/thread interfaces
|
* \brief Core implementation of the CPU session/thread interfaces
|
||||||
* \author Christian Helmuth
|
* \author Christian Helmuth
|
||||||
* \date 2006-07-17
|
* \date 2006-07-17
|
||||||
|
|
|
@ -25,7 +25,8 @@ namespace Genode {
|
||||||
class Cap_root : public Root_component<Cap_session_component>
|
class Cap_root : public Root_component<Cap_session_component>
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
Allocator *_md_alloc;
|
|
||||||
|
Allocator *_md_alloc;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|
|
@ -36,11 +36,11 @@ namespace Genode {
|
||||||
return new (md_alloc())
|
return new (md_alloc())
|
||||||
Cpu_session_component(_thread_ep, _pager_ep, _md_alloc, args); }
|
Cpu_session_component(_thread_ep, _pager_ep, _md_alloc, args); }
|
||||||
|
|
||||||
void _upgrade_session(Cpu_session_component *cpu, const char *args)
|
void _upgrade_session(Cpu_session_component *cpu, const char *args)
|
||||||
{
|
{
|
||||||
size_t ram_quota = Arg_string::find_arg(args, "ram_quota").long_value(0);
|
size_t ram_quota = Arg_string::find_arg(args, "ram_quota").long_value(0);
|
||||||
cpu->upgrade_ram_quota(ram_quota);
|
cpu->upgrade_ram_quota(ram_quota);
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
|
@ -46,11 +46,13 @@ namespace Genode {
|
||||||
RAM uncacheable respectively */
|
RAM uncacheable respectively */
|
||||||
bool const _writable; /* false if dataspace is read-only */
|
bool const _writable; /* false if dataspace is read-only */
|
||||||
|
|
||||||
List<Rm_region> _regions; /* regions this is attached to */
|
List<Rm_region> _regions; /* regions this is attached to */
|
||||||
Lock _lock;
|
Lock _lock;
|
||||||
|
|
||||||
/* Holds the dataspace owner if a distinction between owner and
|
/*
|
||||||
* others is necessary on the dataspace, otherwise it is 0 */
|
* Holds the dataspace owner if a distinction between owner and
|
||||||
|
* others is necessary on the dataspace, otherwise it is 0.
|
||||||
|
*/
|
||||||
Dataspace_owner const * _owner;
|
Dataspace_owner const * _owner;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -38,6 +38,7 @@ namespace Genode {
|
||||||
Rpc_entrypoint *entrypoint() { return &_ep; }
|
Rpc_entrypoint *entrypoint() { return &_ep; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class Signal_root : private Signal_handler,
|
class Signal_root : private Signal_handler,
|
||||||
public Root_component<Signal_session_component>
|
public Root_component<Signal_session_component>
|
||||||
{
|
{
|
||||||
|
|
|
@ -99,6 +99,7 @@ Io_mem_session_component::~Io_mem_session_component()
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
PDBG("I/O mem free [%lx,%lx)", _ds.phys_addr(), _ds.phys_addr() + _ds.size());
|
PDBG("I/O mem free [%lx,%lx)", _ds.phys_addr(), _ds.phys_addr() + _ds.size());
|
||||||
|
|
||||||
/* dissolve IO_MEM dataspace from service entry point */
|
/* dissolve IO_MEM dataspace from service entry point */
|
||||||
_ds_ep->dissolve(&_ds);
|
_ds_ep->dissolve(&_ds);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/**
|
/*
|
||||||
* \brief GRUB multi-boot information handling
|
* \brief GRUB multi-boot information handling
|
||||||
* \author Christian Helmuth
|
* \author Christian Helmuth
|
||||||
* \date 2006-05-10
|
* \date 2006-05-10
|
||||||
|
@ -34,7 +34,6 @@ void Multiboot_info::print_debug()
|
||||||
printf(" mem_lower = %xu\n", mbi->mem_lower);
|
printf(" mem_lower = %xu\n", mbi->mem_lower);
|
||||||
printf(" mem_upper = %xu\n", mbi->mem_upper);
|
printf(" mem_upper = %xu\n", mbi->mem_upper);
|
||||||
printf(" boot_device = %x\n", mbi->boot_device);
|
printf(" boot_device = %x\n", mbi->boot_device);
|
||||||
// printf(" cmdline = %08p \"%s\"\n", mbi->cmdline, (char *)mbi->cmdline);
|
|
||||||
printf(" mods_count = %d\n", mbi->mods_count);
|
printf(" mods_count = %d\n", mbi->mods_count);
|
||||||
printf(" mods_addr = %xu\n", mbi->mods_addr);
|
printf(" mods_addr = %xu\n", mbi->mods_addr);
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ namespace Genode {
|
||||||
addr_t _upper_bound() const {
|
addr_t _upper_bound() const {
|
||||||
return (_size_log2 == ~0UL) ? ~0 : (_base + (1 << _size_log2) - 1); }
|
return (_size_log2 == ~0UL) ? ~0 : (_base + (1 << _size_log2) - 1); }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constructor, constructs invalid fault area
|
* Default constructor, constructs invalid fault area
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -101,7 +101,9 @@ void Signal_session_component::submit(Signal_context_capability context_cap,
|
||||||
context->source()->submit(context, _ipc_ostream, cnt);
|
context->source()->submit(context, _ipc_ostream, cnt);
|
||||||
}
|
}
|
||||||
|
|
||||||
Signal_context_component::~Signal_context_component() {
|
|
||||||
|
Signal_context_component::~Signal_context_component()
|
||||||
|
{
|
||||||
if (is_enqueued() && _source)
|
if (is_enqueued() && _source)
|
||||||
_source->release(this);
|
_source->release(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,7 @@ void Signal_source_component::release(Signal_context_component *context)
|
||||||
_signal_queue.remove(context);
|
_signal_queue.remove(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Signal_source_component::submit(Signal_context_component *context,
|
void Signal_source_component::submit(Signal_context_component *context,
|
||||||
Ipc_ostream *ostream,
|
Ipc_ostream *ostream,
|
||||||
int cnt)
|
int cnt)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user