base: move crt0.h and elf.h to base/internal

Those headers remained unused outside the internal framework. So it is
better to remove them from the public API.

Issue #1832
This commit is contained in:
Norman Feske 2016-01-22 14:31:58 +01:00 committed by Christian Helmuth
parent 2e701f9afa
commit 6e7f7bdad4
17 changed files with 36 additions and 20 deletions

View File

@ -14,9 +14,11 @@
/* Genode includes */
#include <base/printf.h>
#include <base/allocator_avl.h>
#include <base/crt0.h>
#include <base/sleep.h>
#include <util/misc_math.h>
/* base-internal includes */
#include <base/internal/crt0.h>
#include <fiasco/thread_helper.h>
/* core includes */

View File

@ -15,10 +15,12 @@
/* Genode includes */
#include <base/printf.h>
#include <base/allocator_avl.h>
#include <base/crt0.h>
#include <base/sleep.h>
#include <util/misc_math.h>
/* base-internal includes */
#include <base/internal/crt0.h>
/* core includes */
#include <core_parent.h>
#include <platform.h>

View File

@ -14,8 +14,12 @@
#ifndef _INCLUDE__STARTUP__INTERNAL___MAIN_PARENT_CAP_H_
#define _INCLUDE__STARTUP__INTERNAL___MAIN_PARENT_CAP_H_
/* Genode includes */
#include <base/native_types.h>
/* base-internal includes */
#include <base/internal/crt0.h>
namespace Genode {
/**

View File

@ -17,9 +17,10 @@
/* Genode includes */
#include <parent/capability.h>
namespace Hw {
extern Genode::Untyped_capability _parent_cap;
}
/* base-internal includes */
#include <base/internal/crt0.h>
namespace Hw { extern Genode::Untyped_capability _parent_cap; }
namespace Genode {

View File

@ -12,14 +12,14 @@
*/
/* Genode includes */
#include <base/elf.h>
#include <base/env.h>
#include <base/process.h>
#include <base/printf.h>
#include <linux_native_pd/client.h>
/* framework-internal includes */
/* base-internal includes */
#include <linux_syscalls.h>
#include <base/internal/elf.h>
using namespace Genode;

View File

@ -11,7 +11,7 @@
* under the terms of the GNU General Public License version 2.
*/
#include <base/crt0.h>
//#include <base/crt0.h>
#include <base/printf.h>
#include <linux_syscalls.h>
#include <linux_cpu_session/linux_cpu_session.h>

View File

@ -14,14 +14,12 @@
/* Genode includes */
#include <base/printf.h>
#include <base/env.h>
#include <base/crt0.h>
#include <base/sleep.h>
#include <base/thread.h>
#include <util/misc_math.h>
#include <rm_session/connection.h>
static void blob() __attribute__((used));
static void blob()
{

View File

@ -14,10 +14,12 @@
/* Genode includes */
#include <base/printf.h>
#include <base/allocator_avl.h>
#include <base/crt0.h>
#include <base/sleep.h>
#include <util/misc_math.h>
/* base-internal includes */
#include <base/internal/crt0.h>
/* core includes */
#include <core_parent.h>
#include <platform.h>

View File

@ -14,11 +14,13 @@
/* Genode includes */
#include <base/printf.h>
#include <base/allocator_avl.h>
#include <base/crt0.h>
#include <base/sleep.h>
#include <base/capability.h>
#include <util/misc_math.h>
/* base-internal includes */
#include <base/internal/crt0.h>
/* core includes */
#include <core_parent.h>
#include <map_local.h>

View File

@ -15,11 +15,11 @@
/* Genode includes */
#include <base/printf.h>
#include <base/elf.h>
#include <util/string.h>
/* base-internal includes */
#include <base/internal/elf_format.h>
#include <base/internal/elf.h>
using namespace Genode;

View File

@ -12,14 +12,14 @@
* under the terms of the GNU General Public License version 2.
*/
/* base-internal includes */
#include <base/internal/platform_env.h>
/* Genode includes */
#include <util/construct_at.h>
#include <base/crt0.h>
#include <rm_session/connection.h>
/* base-internal includes */
#include <base/internal/platform_env.h>
#include <base/internal/crt0.h>
void prepare_reinit_main_thread();
void reinit_main_thread();

View File

@ -12,13 +12,16 @@
* under the terms of the GNU General Public License version 2.
*/
/* Genode includes */
#include <base/process.h>
#include <base/elf.h>
#include <base/env.h>
#include <base/printf.h>
#include <ram_session/client.h>
#include <dataspace/client.h>
/* base-internal includes */
#include <base/internal/elf.h>
using namespace Genode;
Dataspace_capability Process::_dynamic_linker_cap;

View File

@ -17,6 +17,9 @@
#ifndef _INCLUDE__STARTUP__INTERNAL___MAIN_PARENT_CAP_H_
#define _INCLUDE__STARTUP__INTERNAL___MAIN_PARENT_CAP_H_
/* base-internal includes */
#include <base/internal/crt0.h>
namespace Genode {
/**

View File

@ -19,13 +19,13 @@
*/
/* Genode includes */
#include <base/crt0.h>
#include <base/env.h>
#include <base/sleep.h>
#include <base/printf.h>
/* platform-specific local helper functions */
#include <startup/internal/_main_parent_cap.h>
#include <base/internal/crt0.h>
using namespace Genode;

View File

@ -15,7 +15,6 @@
#define _SRC__SERVER__VMM__INCLUDE__VM_H_
/* Genode includes */
#include <base/elf.h>
#include <dataspace/client.h>
#include <io_mem_session/connection.h>
#include <rom_session/connection.h>