mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Revert "xen/arm: do not relocate Xen outside of visible RAM"
This reverts commitdb92b1ac55. The restriction on non contiguous memory was resolved by commit2d02b05c77: "xen: arm: improve handling of system with non-contiguous RAM regions" So, reverting this change,to enable Xen image placement at the end of the useable system RAM. Signed-off-by: Sameer Goel <sgoel@codeaurora.org> Acked-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
1 parent
ab5b00ab49
commit
9f954a5e90
1 file changed
+1
-9
@@ -392,25 +392,17 @@ static paddr_t __init get_xen_paddr(void)
|
||||
{
|
||||
struct meminfo *mi = &bootinfo.mem;
|
||||
paddr_t min_size;
|
||||
paddr_t paddr = 0, last_end;
|
||||
paddr_t paddr = 0;
|
||||
int i;
|
||||
|
||||
min_size = (_end - _start + (XEN_PADDR_ALIGN-1)) & ~(XEN_PADDR_ALIGN-1);
|
||||
|
||||
last_end = mi->bank[0].start;
|
||||
|
||||
/* Find the highest bank with enough space. */
|
||||
for ( i = 0; i < mi->nr_banks; i++ )
|
||||
{
|
||||
const struct membank *bank = &mi->bank[i];
|
||||
paddr_t s, e;
|
||||
|
||||
/* We can only deal with contiguous memory at the moment */
|
||||
if ( last_end != bank->start )
|
||||
break;
|
||||
|
||||
last_end = bank->start + bank->size;
|
||||
|
||||
if ( bank->size >= min_size )
|
||||
{
|
||||
e = consider_modules(bank->start, bank->start + bank->size,
|
||||
|
||||