Commit 6b3d729d authored by Basile Desloges 's avatar Basile Desloges
Browse files

[eacsl] Fix address of end segment in RTL layout

parent c4d10fb9
......@@ -427,7 +427,7 @@ void set_application_segment(memory_segment *seg, uintptr_t start,
seg->name = name;
seg->start = start;
seg->size = size;
seg->end = seg->start + seg->size;
seg->end = seg->start + seg->size - 1;
seg->mspace = msp;
seg->parent = NULL;
seg->shadow_ratio = 0;
......@@ -442,7 +442,7 @@ void set_shadow_segment(memory_segment *seg, memory_segment *parent,
seg->size = parent->size/seg->shadow_ratio;
seg->mspace = eacsl_create_mspace(seg->size + SHADOW_SEGMENT_PADDING, 0);
seg->start = (uintptr_t)eacsl_mspace_malloc(seg->mspace,1);
seg->end = seg->start + seg->size;
seg->end = seg->start + seg->size - 1;
seg->shadow_offset = parent->start - seg->start;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment