genode/repos/base-hw/src/core/spec/vea9x4/board.cc
Martin Stein 3a40c27c26 hw_vea9x4: quickfix slow RAM access
Setting the ACTLR.SMP bit also without SMP support fastens RAM access
significantly. A proper solution would implement SMP support which must enable
the bit anyway.

Fixes #1353
2015-02-17 14:18:16 +01:00

30 lines
614 B
C++

/*
* \brief Board driver for core
* \author Martin Stein
* \date 2015-02-16
*/
/*
* Copyright (C) 2012-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 <cpu.h>
using namespace Genode;
void Board::prepare_kernel()
{
/**
* FIXME We enable this bit although base-hw doesn't support
* SMP because it fastens RAM access significantly.
*/
Cpu::Actlr::access_t actlr = Cpu::Actlr::read();
Cpu::Actlr::Smp::set(actlr, 1);
Cpu::Actlr::write(actlr);
}