Add WUMS_MODULE_SKIP_WUT_INIT() macro to skip wut init/fini calls

This commit is contained in:
Maschell
2021-02-19 16:35:44 +01:00
parent d59c15531d
commit a9aabcd149
3 changed files with 4 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ extern "C" {
#define WUMS_MODULE_DESCRIPTION(x) WUMS_META(description, x)
#define WUMS_MODULE_SKIP_ENTRYPOINT() WUMS_META(skipEntrypoint, "true")
#define WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK() WUMS_META(initBeforeRelocationDoneHook, "true")
#define WUMS_MODULE_SKIP_WUT_INIT() WUMS_META(skipwutInit, "true")
#ifdef __cplusplus
}

View File

@@ -55,10 +55,11 @@ struct module_information_single_t {
uint32_t endAddress;
uint8_t skipEntrypoint;
uint8_t initBeforeRelocationDoneHook;
uint8_t skipWUTInit;
};
#define MAXIMUM_MODULES 8
#define MODULE_INFORMATION_VERSION 0x00000002
#define MODULE_INFORMATION_VERSION 0x00000003
struct module_information_t {
uint32_t version = MODULE_INFORMATION_VERSION;