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