headers/kernel: Include declarations of initialization functions in image.h.
No "real" functional change, but this causes GCC7 to throw errors when these functions are declared without the image_id argument, which in some files they were (as this commit repairs.) This change is largely inconsequential on x86, but on callee-cleanup-args targets, leaving out the argument would probably cause stack corruption.
This commit is contained in:
@@ -64,6 +64,11 @@ extern "C" {
|
|||||||
#define B_TERM_BEFORE_FUNCTION_NAME "terminate_before"
|
#define B_TERM_BEFORE_FUNCTION_NAME "terminate_before"
|
||||||
#define B_TERM_AFTER_FUNCTION_NAME "terminate_after"
|
#define B_TERM_AFTER_FUNCTION_NAME "terminate_after"
|
||||||
|
|
||||||
|
void initialize_before(image_id);
|
||||||
|
void initialize_after(image_id);
|
||||||
|
void terminate_before(image_id);
|
||||||
|
void terminate_after(image_id);
|
||||||
|
|
||||||
|
|
||||||
#define B_APP_IMAGE_SYMBOL ((void*)(addr_t)0)
|
#define B_APP_IMAGE_SYMBOL ((void*)(addr_t)0)
|
||||||
/* value that can be used instead of a pointer to a symbol in the program
|
/* value that can be used instead of a pointer to a symbol in the program
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ initialize_forked_child()
|
|||||||
|
|
||||||
|
|
||||||
extern "C" void
|
extern "C" void
|
||||||
initialize_before()
|
initialize_before(image_id)
|
||||||
{
|
{
|
||||||
DBG(OUT("initialize_before()\n"));
|
DBG(OUT("initialize_before()\n"));
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ initialize_before()
|
|||||||
|
|
||||||
|
|
||||||
extern "C" void
|
extern "C" void
|
||||||
initialize_after()
|
initialize_after(image_id)
|
||||||
{
|
{
|
||||||
DBG(OUT("initialize_after()\n"));
|
DBG(OUT("initialize_after()\n"));
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ initialize_after()
|
|||||||
|
|
||||||
|
|
||||||
extern "C" void
|
extern "C" void
|
||||||
terminate_after()
|
terminate_after(image_id)
|
||||||
{
|
{
|
||||||
DBG(OUT("terminate_after()\n"));
|
DBG(OUT("terminate_after()\n"));
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ find_own_image()
|
|||||||
|
|
||||||
|
|
||||||
extern "C" void
|
extern "C" void
|
||||||
initialize_before()
|
initialize_before(image_id)
|
||||||
{
|
{
|
||||||
// If in compatibility mode get our code address range.
|
// If in compatibility mode get our code address range.
|
||||||
if (__gR5Compatibility)
|
if (__gR5Compatibility)
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ find_own_image()
|
|||||||
|
|
||||||
|
|
||||||
extern "C" void
|
extern "C" void
|
||||||
initialize_before()
|
initialize_before(image_id)
|
||||||
{
|
{
|
||||||
// determine if we have to run in BeOS compatibility mode
|
// determine if we have to run in BeOS compatibility mode
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,6 @@
|
|||||||
#include <pthread_private.h>
|
#include <pthread_private.h>
|
||||||
|
|
||||||
|
|
||||||
void initialize_before(image_id imageID);
|
|
||||||
void terminate_after(image_id imageID);
|
|
||||||
|
|
||||||
struct rld_export *__gRuntimeLoader = NULL;
|
struct rld_export *__gRuntimeLoader = NULL;
|
||||||
// This little bugger is set to something meaningful by the runtime loader
|
// This little bugger is set to something meaningful by the runtime loader
|
||||||
// Ugly, eh?
|
// Ugly, eh?
|
||||||
|
|||||||
Reference in New Issue
Block a user