Revert "xen/arm: do not relocate Xen outside of visible RAM"

This reverts commit db92b1ac55.

The restriction on non contiguous memory was resolved by commit
2d02b05c77:
"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:
Sameer Goel authored and Stefano Stabellini committed 2016-12-06 10:32:11 -08:00
1 parent ab5b00ab49
commit 9f954a5e90
1 file changed
+1 -9
+1 -9
View File
@@ -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,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.