mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-02 00:39:42 +00:00
base-linux: fix build (BOARD=pc)
Fix a few build errors related to required type conversions and handling of references. Fixes #4440 Fixes #4441
This commit is contained in:
parent
4056fb9127
commit
1142ef91df
@ -54,7 +54,7 @@ Linux_dataspace::Filename Dataspace_component::_file_name(const char *args)
|
||||
Genode::size_t Dataspace_component::_file_size()
|
||||
{
|
||||
uint64_t size = 0;
|
||||
if (lx_stat_size(_fname.buf, &size) < 0)
|
||||
if (lx_stat_size(_fname.buf, size) < 0)
|
||||
throw Service_denied();
|
||||
|
||||
return size;
|
||||
|
@ -23,8 +23,8 @@ Io_port_session_component::Io_port_session_component(Range_allocator &io_port_al
|
||||
_io_port_alloc(io_port_alloc)
|
||||
{
|
||||
/* parse for port properties */
|
||||
_base = Arg_string::find_arg(args, "io_port_base").ulong_value(0);
|
||||
_size = Arg_string::find_arg(args, "io_port_size").ulong_value(0);
|
||||
_base = (unsigned short)Arg_string::find_arg(args, "io_port_base").ulong_value(0);
|
||||
_size = (unsigned short)Arg_string::find_arg(args, "io_port_size").ulong_value(0);
|
||||
}
|
||||
|
||||
Io_port_session_component::~Io_port_session_component() { }
|
||||
|
@ -26,7 +26,7 @@ using namespace Genode;
|
||||
|
||||
Irq_session_component::Irq_session_component(Range_allocator &, const char *args)
|
||||
:
|
||||
_irq_number(Arg_string::find_arg(args, "irq_number").long_value(-1)),
|
||||
_irq_number((unsigned)Arg_string::find_arg(args, "irq_number").long_value(-1)),
|
||||
_irq_object(_irq_number)
|
||||
{
|
||||
_irq_object.start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user