mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-07 20:00:23 +00:00
parent
e1ed832ac1
commit
eab8217bdb
@ -47,6 +47,18 @@ extern "C" int __cxa_atexit(void(*func)(void*), void *arg,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prototype for finalize support function provided by '_main.cc'
|
||||||
|
*/
|
||||||
|
extern int genode___cxa_finalize(void *dso);
|
||||||
|
|
||||||
|
|
||||||
|
extern "C" void __cxa_finalize(void *dso)
|
||||||
|
{
|
||||||
|
genode___cxa_finalize(dso);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***********************************
|
/***********************************
|
||||||
** Support required for ARM EABI **
|
** Support required for ARM EABI **
|
||||||
***********************************/
|
***********************************/
|
||||||
|
@ -170,6 +170,8 @@ void genode___cxa_finalize(void *dso)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
extern "C" void __cxa_finalize(void *dso);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Terminate the process.
|
* Terminate the process.
|
||||||
*/
|
*/
|
||||||
@ -192,7 +194,7 @@ void genode_exit(int status)
|
|||||||
for (func = &_dtors_start; func != &_dtors_end; (*func++)());
|
for (func = &_dtors_start; func != &_dtors_end; (*func++)());
|
||||||
|
|
||||||
/* call all handlers registered with atexit() or __cxa_atexit() */
|
/* call all handlers registered with atexit() or __cxa_atexit() */
|
||||||
genode___cxa_finalize(0);
|
__cxa_finalize(0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Wait for destruction by the parent who was supposed to be notified by
|
* Wait for destruction by the parent who was supposed to be notified by
|
||||||
|
Loading…
x
Reference in New Issue
Block a user