2016-11-07 18:00:24 +01:00
|
|
|
/*
|
|
|
|
* \brief Initialization code for bootstrap
|
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \date 2016-09-22
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 13:23:52 +01:00
|
|
|
* Copyright (C) 2016-2017 Genode Labs GmbH
|
2016-11-07 18:00:24 +01:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 13:23:52 +01:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2016-11-07 18:00:24 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* local */
|
|
|
|
#include <platform.h>
|
|
|
|
|
|
|
|
/* base includes */
|
|
|
|
#include <base/internal/globals.h>
|
|
|
|
#include <base/internal/unmanaged_singleton.h>
|
|
|
|
|
2017-02-21 13:46:59 +01:00
|
|
|
Bootstrap::Platform & Bootstrap::platform() {
|
|
|
|
return *unmanaged_singleton<Bootstrap::Platform>(); }
|
2016-11-07 18:00:24 +01:00
|
|
|
|
|
|
|
extern "C" void init() __attribute__ ((noreturn));
|
|
|
|
|
|
|
|
extern "C" void init()
|
|
|
|
{
|
2017-06-30 12:00:27 +02:00
|
|
|
Bootstrap::Platform & p = Bootstrap::platform();
|
|
|
|
p.start_core(p.enable_mmu());
|
2016-11-07 18:00:24 +01:00
|
|
|
}
|