Replace 'Env' interface with modern one

The original 'Env' interface as returned by 'Genode::env()' has been
renamed to 'Env_deprecated' and moved to deprecated/env.h. The new version
of base/env.h contains the interface passed to modern components that
use the component API via base/component.h.

Issue #1832
This commit is contained in:
Norman Feske
2016-04-27 22:11:38 +02:00
committed by Christian Helmuth
parent 7274ca997d
commit 4f69772ecc
24 changed files with 227 additions and 188 deletions

View File

@ -357,7 +357,7 @@ struct Linker::Binary : Root_object, Elf_object
return 0;
}
void call_entry_point(Genode::Environment &env)
void call_entry_point(Genode::Env &env)
{
/* call static construtors and register destructors */
Func * const ctors_start = (Func *)lookup_symbol("_ctors_start");
@ -371,7 +371,7 @@ struct Linker::Binary : Root_object, Elf_object
/* call component entry point */
/* XXX the function type for call_component_construct() is a candidate
* for a base-internal header */
typedef void (*Entry)(Genode::Environment &);
typedef void (*Entry)(Genode::Env &);
Entry const entry = reinterpret_cast<Entry>(_file->entry);
entry(env);
@ -543,7 +543,7 @@ char const * Component::name() { return "ep"; }
struct Failed_to_load_program { };
void Component::construct(Genode::Environment &env)
void Component::construct(Genode::Env &env)
{
/* load program headers of linker now */
if (!Ld::linker()->file())