mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1713.1.7 (42ae0dd6jIaFvKcbyu8YLCgOrZScdg)
[PATCH] [PATCH] fix x86_64 initrd support * Chris Wright (chrisw@osdl.org) wrote: Ugh, that one had some tab damage, here's the proper patch. -chris
This commit is contained in:
1 parent
264c8b7aac
commit
2d0fe9c80f
1 file changed
+14
-17
@@ -727,23 +727,20 @@ void __init setup_arch(char **cmdline_p)
|
||||
acpi_reserve_bootmem();
|
||||
#endif
|
||||
#ifdef CONFIG_BLK_DEV_INITRD
|
||||
if (xen_start_info.mod_start) {
|
||||
if (LOADER_TYPE && INITRD_START) {
|
||||
if (INITRD_START + INITRD_SIZE <= (end_pfn << PAGE_SHIFT)) {
|
||||
/* reserve_bootmem_generic(INITRD_START, INITRD_SIZE); */
|
||||
initrd_start = INITRD_START + PAGE_OFFSET;
|
||||
initrd_end = initrd_start+INITRD_SIZE;
|
||||
initrd_below_start_ok = 1;
|
||||
}
|
||||
else {
|
||||
printk(KERN_ERR "initrd extends beyond end of memory "
|
||||
"(0x%08lx > 0x%08lx)\ndisabling initrd\n",
|
||||
(unsigned long)(INITRD_START + INITRD_SIZE),
|
||||
(unsigned long)(end_pfn << PAGE_SHIFT));
|
||||
initrd_start = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (xen_start_info.mod_start) {
|
||||
if (INITRD_START + INITRD_SIZE <= (end_pfn << PAGE_SHIFT)) {
|
||||
/*reserve_bootmem_generic(INITRD_START, INITRD_SIZE);*/
|
||||
initrd_start = INITRD_START + PAGE_OFFSET;
|
||||
initrd_end = initrd_start+INITRD_SIZE;
|
||||
initrd_below_start_ok = 1;
|
||||
} else {
|
||||
printk(KERN_ERR "initrd extends beyond end of memory "
|
||||
"(0x%08lx > 0x%08lx)\ndisabling initrd\n",
|
||||
(unsigned long)(INITRD_START + INITRD_SIZE),
|
||||
(unsigned long)(end_pfn << PAGE_SHIFT));
|
||||
initrd_start = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
paging_init();
|
||||
#ifdef CONFIG_X86_LOCAL_APIC
|
||||
|
||||