Browse Source

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
devel
Norman Feske 7 years ago committed by Christian Helmuth
parent
commit
6e7f7bdad4
  1. 4
      repos/base-fiasco/src/core/platform.cc
  2. 4
      repos/base-foc/src/core/platform.cc
  3. 4
      repos/base-foc/src/include/startup/internal/_main_parent_cap.h
  4. 7
      repos/base-hw/src/include/startup/internal/_main_parent_cap.h
  5. 4
      repos/base-linux/src/base/process/process.cc
  6. 2
      repos/base-linux/src/lib/lx_hybrid/lx_hybrid.cc
  7. 2
      repos/base-linux/src/test/lx_rmap/main.cc
  8. 4
      repos/base-okl4/src/core/platform.cc
  9. 4
      repos/base-pistachio/src/core/platform.cc
  10. 2
      repos/base/src/base/elf/elf_binary.cc
  11. 8
      repos/base/src/base/env/reinitialize.cc
  12. 5
      repos/base/src/base/process/process.cc
  13. 0
      repos/base/src/include/base/internal/crt0.h
  14. 0
      repos/base/src/include/base/internal/elf.h
  15. 3
      repos/base/src/include/startup/internal/_main_parent_cap.h
  16. 2
      repos/base/src/lib/startup/_main.cc
  17. 1
      repos/os/src/server/tz_vmm/include/vm_base.h

4
repos/base-fiasco/src/core/platform.cc

@ -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 */

4
repos/base-foc/src/core/platform.cc

@ -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>

4
repos/base-foc/src/include/startup/internal/_main_parent_cap.h

@ -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 {
/**

7
repos/base-hw/src/include/startup/internal/_main_parent_cap.h

@ -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 {

4
repos/base-linux/src/base/process/process.cc

@ -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;

2
repos/base-linux/src/lib/lx_hybrid/lx_hybrid.cc

@ -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>

2
repos/base-linux/src/test/lx_rmap/main.cc

@ -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()
{

4
repos/base-okl4/src/core/platform.cc

@ -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>

4
repos/base-pistachio/src/core/platform.cc

@ -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>

2
repos/base/src/base/elf/elf_binary.cc

@ -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;

8
repos/base/src/base/env/reinitialize.cc vendored

@ -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();

5
repos/base/src/base/process/process.cc

@ -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;

0
repos/base/include/base/crt0.h → repos/base/src/include/base/internal/crt0.h

0
repos/base/include/base/elf.h → repos/base/src/include/base/internal/elf.h

3
repos/base/src/include/startup/internal/_main_parent_cap.h

@ -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 {
/**

2
repos/base/src/lib/startup/_main.cc

@ -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;

1
repos/os/src/server/tz_vmm/include/vm_base.h

@ -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>

Loading…
Cancel
Save