panic("Bootloader didn't honor module alignment request\n");
bi->mods[i].mod->mod_end -= bi->mods[i].mod->mod_start;
bi->mods[i].mod->mod_start >>= PAGE_SHIFT;
- bi->mods[i].mod->reserved = 0;
}
/*
unsigned long headroom = j ? 0 : modules_headroom;
unsigned long size = PAGE_ALIGN(headroom + bm->mod->mod_end);
- if ( bm->mod->reserved )
+ if ( bm->relocated )
continue;
/* Don't overlap with other modules (or Xen itself). */
pfn_to_paddr(bm->mod->mod_start), bm->mod->mod_end);
bm->mod->mod_start = (end - size) >> PAGE_SHIFT;
bm->mod->mod_end += headroom;
- bm->mod->reserved = 1;
+ bm->relocated = true;
}
}
#endif
}
- if ( modules_headroom && !bi->mods[0].mod->reserved )
+ if ( modules_headroom && !bi->mods[0].relocated )
panic("Not enough memory to relocate the dom0 kernel image\n");
for ( i = 0; i < bi->nr_modules; ++i )
{