hw: disable L2 cache for imx53 platform

Currently the L2 cache for i.MX53 doesn't work correctly in the
hw-kernel, so we temporarily disable it.

Ref #1182
This commit is contained in:
Stefan Kalkowski 2014-06-20 15:27:30 +02:00 committed by Norman Feske
parent 1c2ff67d96
commit e5b78a6494
1 changed files with 9 additions and 0 deletions

View File

@ -78,6 +78,13 @@ namespace Imx53
struct Board : Genode::Board_base
{
static void disable_l2_cache()
{
asm volatile ("mrc p15, 0, r0, c1, c0, 1 \n"
"bic r0, r0, #2 \n"
"mcr p15, 0, r0, c1, c0, 1" ::: "r0" );
}
/**
* static AIPS 1 instance
*/
@ -93,6 +100,8 @@ namespace Imx53
*/
static void prepare_kernel()
{
disable_l2_cache();
aips_1()->prepare_kernel();
aips_2()->prepare_kernel();
}