2015-03-18 23:40:58 +01:00
|
|
|
/*
|
|
|
|
* \brief ARM specific platform implementations
|
|
|
|
* \author Adrian-Ken Rueegsegger
|
|
|
|
* \date 2015-03-18
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Genode Labs GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* core includes */
|
|
|
|
#include <platform.h>
|
|
|
|
|
|
|
|
using namespace Genode;
|
|
|
|
|
|
|
|
void Platform::_init_io_port_alloc() { };
|
2015-03-19 16:55:21 +01:00
|
|
|
|
2015-05-16 02:34:45 +02:00
|
|
|
void Platform::setup_irq_mode(unsigned, unsigned, unsigned) { }
|
|
|
|
|
2015-04-28 14:56:00 +02:00
|
|
|
Native_region * mmio_regions(unsigned);
|
2015-03-19 16:55:21 +01:00
|
|
|
|
2015-04-28 14:56:00 +02:00
|
|
|
|
|
|
|
void Platform::_init_io_mem_alloc()
|
|
|
|
{
|
|
|
|
Native_region * r = mmio_regions(0);
|
|
|
|
for (unsigned i = 0; r; r = mmio_regions(++i))
|
|
|
|
_io_mem_alloc.add_range(r->base, r->size);
|
2015-12-02 11:15:46 +01:00
|
|
|
|
|
|
|
r = mmio_regions(0);
|
|
|
|
for (unsigned i = 0; r; r = mmio_regions(++i))
|
|
|
|
_core_mem_alloc.virt_alloc()->remove_range(r->base, r->size);
|
2015-04-28 14:56:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
long Platform::irq(long const user_irq) { return user_irq; }
|