[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Clean up bootmem initialisation for x86/64. Question still
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 684d8193344209f3bbce4b07977f9d51ec48f63e # Parent e83fc5afec3c3c32d5d8d8ca21698e67d92f5f4d Clean up bootmem initialisation for x86/64. Question still remains over why boot fails if we try to free up the bottom 1MB of pseudophysical memory... Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r e83fc5afec3c -r 684d81933442 linux-2.6-xen-sparse/arch/xen/x86_64/kernel/setup.c --- a/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/setup.c Thu Aug 18 15:01:03 2005 +++ b/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/setup.c Thu Aug 18 16:04:00 2005 @@ -426,16 +426,10 @@ #ifdef CONFIG_XEN static void __init contig_initmem_init(void) { - unsigned long bootmap_size, bootmap; - - bootmap_size = bootmem_bootmap_pages(end_pfn)<<PAGE_SHIFT; - bootmap = start_pfn; - bootmap_size = init_bootmem(bootmap, end_pfn); - reserve_bootmem(bootmap, bootmap_size); - - free_bootmem(start_pfn << PAGE_SHIFT, (end_pfn - start_pfn) << PAGE_SHIFT); - reserve_bootmem(0, (PFN_PHYS(start_pfn) + - bootmap_size + PAGE_SIZE-1)); + unsigned long bootmap_size = init_bootmem(start_pfn, end_pfn); + free_bootmem(0, end_pfn << PAGE_SHIFT); + /* XXX KAF: Why can't we leave low 1MB of memory free? */ + reserve_bootmem(0, (PFN_PHYS(start_pfn) + bootmap_size + PAGE_SIZE-1)); } #else static void __init contig_initmem_init(void) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |