Populate the memory map structure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user