Add the macro for using the "init before entrypoint" flag

This commit is contained in:
Maschell 2020-06-10 14:10:54 +02:00
parent 5286dc6bc8
commit 728b6e182c
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ extern "C" {
#define WUMS_MODULE_VERSION(x) WUMS_META(version, x)
#define WUMS_MODULE_LICENSE(x) WUMS_META(license, x)
#define WUMS_MODULE_DESCRIPTION(x) WUMS_META(description, x)
#define WUMS_MODULE_INIT_BEFORE_ENTRYPOINT() WUMS_META(initBeforeEntrypoint, "true")
#ifdef __cplusplus
}

View File

@ -53,6 +53,7 @@ struct module_information_single_t {
uint32_t entrypoint;
uint32_t startAddress;
uint32_t endAddress;
uint8_t initBeforeEntrypoint;
};
#define MAXIMUM_MODULES 8