hw_x86_64: Add APIC MMIO to native regions

This commit is contained in:
Reto Buerki 2015-03-18 10:33:00 +01:00 committed by Christian Helmuth
parent cf100f96af
commit 557c96a9cb
1 changed files with 6 additions and 2 deletions

View File

@ -1,13 +1,14 @@
/*
* \brief Platform implementations specific for base-hw and Raspberry Pi
* \brief Platform implementations specific for x86
* \author Norman Feske
* \author Reto Buerki
* \date 2013-04-05
*
* 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
* under the terms of the GNU General Public License version 2.
@ -15,6 +16,7 @@
/* core includes */
#include <platform.h>
#include <board.h>
#include <cpu.h>
using namespace Genode;
@ -42,6 +44,8 @@ Native_region * Platform::_core_only_mmio_regions(unsigned const i)
{
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;
}