This can happen if modules are in a bank which we can't cope with e.g. due to
being non-contiguous.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Tim Deegan <tim@xen.org>
e = n = ram_end;
}
+ /* Module in RAM which we cannot see here, due to not handling
+ * non-contiguous memory regions yet
+ */
+ if ( e > ram_end )
+ e = ram_end;
+
/* Avoid the xenheap */
if ( s < ((xenheap_mfn_start+xenheap_pages) << PAGE_SHIFT)
&& (xenheap_mfn_start << PAGE_SHIFT) < e )