mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-23 18:50:29 +00:00
Preserve thread-context area as early as possible
This commit is contained in:
parent
b0559dabfc
commit
4556a9e353
@ -236,6 +236,12 @@ extern "C" int _main()
|
|||||||
/* initialize exception handling */
|
/* initialize exception handling */
|
||||||
init_exception_handling();
|
init_exception_handling();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We create the thread-context area as early as possible to prevent other
|
||||||
|
* mappings from occupying the predefined virtual-memory region.
|
||||||
|
*/
|
||||||
|
env_context_area_rm_session();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Trigger first exception. This step has two purposes.
|
* Trigger first exception. This step has two purposes.
|
||||||
* First, it enables us to detect problems related to exception handling as
|
* First, it enables us to detect problems related to exception handling as
|
||||||
@ -261,9 +267,6 @@ extern "C" int _main()
|
|||||||
|
|
||||||
/* now, it is save to call printf */
|
/* now, it is save to call printf */
|
||||||
|
|
||||||
/* create the thread context area RM session */
|
|
||||||
env_context_area_rm_session();
|
|
||||||
|
|
||||||
/* enable tracing support */
|
/* enable tracing support */
|
||||||
inhibit_tracing = false;
|
inhibit_tracing = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user