genode/repos/base-hw/src/core/include/spec/exynos5/board.h

44 lines
808 B
C++

/*
* \brief Board driver for core
* \author Martin Stein
* \author Stefan Kalkowski
* \date 2012-04-23
*/
/*
* Copyright (C) 2012-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 _BOARD_H_
#define _BOARD_H_
/* core includes */
#include <spec/cortex_a15/board_support.h>
namespace Genode
{
class Board : public Cortex_a15::Board_base
{
public:
static void init() { }
/**
* Tell secondary CPUs to start execution from instr. pointer 'ip'
*/
static void wake_up_all_cpus(void * const ip)
{
*(void * volatile *)IRAM_BASE = ip;
asm volatile("dsb\n"
"sev\n");
}
static bool is_smp() { return true; }
};
}
#endif /* _BOARD_H_ */