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

@ -3,7 +3,7 @@ include $(TOPDIR)/share/wums_rules
export WUMS_MAJOR := 0
export WUMS_MINOR := 1
export WUMS_PATCH := 1
export WUMS_PATCH := 2
VERSION := $(WUMS_MAJOR).$(WUMS_MINOR).$(WUMS_PATCH)

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;