mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
hw_x86_64: Add APIC MMIO to native regions
This commit is contained in:
parent
cf100f96af
commit
557c96a9cb
@ -1,13 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* \brief Platform implementations specific for base-hw and Raspberry Pi
|
* \brief Platform implementations specific for x86
|
||||||
* \author Norman Feske
|
* \author Norman Feske
|
||||||
|
* \author Reto Buerki
|
||||||
* \date 2013-04-05
|
* \date 2013-04-05
|
||||||
*
|
*
|
||||||
* XXX dimension allocators according to the available physical memory
|
* XXX dimension allocators according to the available physical memory
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2013 Genode Labs GmbH
|
* Copyright (C) 2013-2015 Genode Labs GmbH
|
||||||
*
|
*
|
||||||
* This file is part of the Genode OS framework, which is distributed
|
* This file is part of the Genode OS framework, which is distributed
|
||||||
* under the terms of the GNU General Public License version 2.
|
* under the terms of the GNU General Public License version 2.
|
||||||
@ -15,6 +16,7 @@
|
|||||||
|
|
||||||
/* core includes */
|
/* core includes */
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
|
#include <board.h>
|
||||||
#include <cpu.h>
|
#include <cpu.h>
|
||||||
|
|
||||||
using namespace Genode;
|
using namespace Genode;
|
||||||
@ -42,6 +44,8 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
|
|||||||
{
|
{
|
||||||
static Native_region _regions[] =
|
static Native_region _regions[] =
|
||||||
{
|
{
|
||||||
|
{ Board::MMIO_LAPIC_BASE, Board::MMIO_LAPIC_SIZE },
|
||||||
|
{ Board::MMIO_IOAPIC_BASE, Board::MMIO_IOAPIC_SIZE },
|
||||||
};
|
};
|
||||||
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
|
return i < sizeof(_regions)/sizeof(_regions[0]) ? &_regions[i] : 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user