This commit enables multi-processing for all Cortex A9 SoCs we currently support. Moreover, it thereby enables the L2 cache for i.MX6 that was not enabled until now. However, the QEMU variants hw_pbxa9 and hw_zynq still only use 1 core, because the busy cpu synchronization used when initializing multiple Cortex A9 cores leads to horrible boot times on QEMU. During this work the CPU initialization in general was reworked. From now on lots of hardware specifics were put into the 'spec' specific files, some generic hook functions and abstractions thereby were eliminated. This results to more lean implementations for instance on non-SMP platforms, or in the x86 case where cache maintainance is a non-issue. Due to the fact that memory/cache coherency and SMP are closely coupled on ARM Cortex A9 this commit combines so different aspects. Fix #1312 Fix #1807
37 lines
631 B
C++
37 lines
631 B
C++
/*
|
|
* \brief Singlethreaded minimalistic kernel
|
|
* \author Martin Stein
|
|
* \author Stefan Kalkowski
|
|
* \date 2013-09-30
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2013-2016 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.
|
|
*/
|
|
|
|
#ifndef _KERNEL__KERNEL_H_
|
|
#define _KERNEL__KERNEL_H_
|
|
|
|
#include <pic.h>
|
|
#include <board.h>
|
|
|
|
/**
|
|
* Main routine of every kernel pass
|
|
*/
|
|
extern "C" void kernel();
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
class Pd;
|
|
|
|
Pd * core_pd();
|
|
Pic * pic();
|
|
Genode::Board & board();
|
|
}
|
|
|
|
#endif /* _KERNEL__KERNEL_H_ */
|