Populate the memory map structure

This commit is contained in:
2025-03-20 00:42:19 +02:00
parent 1cd14ad69f
commit 2648ee1bc9
4 changed files with 73 additions and 23 deletions

View File

@@ -21,7 +21,7 @@ typedef struct {
} ModuleInfos;
typedef struct {
struct sc_array_memreg *memory_regions;
struct sc_array_memreg memory_regions;
} HiloadContext;
static HiloadContext context = {0};
@@ -267,7 +267,7 @@ int hi_init() {
sc_log_set_level("DEBUG");
if (read_memory_maps_self(context.memory_regions) != HILOAD_OK) {
if (read_memory_maps_self(&context.memory_regions) != HILOAD_OK) {
sc_log_error("Could not populate program memory maps.\n");
return HILOAD_FAIL;
}