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:
Augustin Cavalier
2019-02-01 20:30:39 -05:00
parent d545ad17ce
commit c5e4e4ffb4
5 changed files with 10 additions and 8 deletions
+5
View File
@@ -64,6 +64,11 @@ extern "C" {
#define B_TERM_BEFORE_FUNCTION_NAME "terminate_before"
#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)
/* value that can be used instead of a pointer to a symbol in the program
+3 -3
View File
@@ -43,7 +43,7 @@ initialize_forked_child()
extern "C" void
initialize_before()
initialize_before(image_id)
{
DBG(OUT("initialize_before()\n"));
@@ -57,7 +57,7 @@ initialize_before()
extern "C" void
initialize_after()
initialize_after(image_id)
{
DBG(OUT("initialize_after()\n"));
@@ -68,7 +68,7 @@ initialize_after()
extern "C" void
terminate_after()
terminate_after(image_id)
{
DBG(OUT("terminate_after()\n"));
+1 -1
View File
@@ -33,7 +33,7 @@ find_own_image()
extern "C" void
initialize_before()
initialize_before(image_id)
{
// If in compatibility mode get our code address range.
if (__gR5Compatibility)
+1 -1
View File
@@ -43,7 +43,7 @@ find_own_image()
extern "C" void
initialize_before()
initialize_before(image_id)
{
// determine if we have to run in BeOS compatibility mode
-3
View File
@@ -19,9 +19,6 @@
#include <pthread_private.h>
void initialize_before(image_id imageID);
void terminate_after(image_id imageID);
struct rld_export *__gRuntimeLoader = NULL;
// This little bugger is set to something meaningful by the runtime loader
// Ugly, eh?