[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] linux/x86_64: miscellaneous initialization code cleanup
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> Index: head-2007-02-08/arch/x86_64/kernel/setup-xen.c =================================================================== --- head-2007-02-08.orig/arch/x86_64/kernel/setup-xen.c 2007-02-16 14:04:35.000000000 +0100 +++ head-2007-02-08/arch/x86_64/kernel/setup-xen.c 2007-02-09 12:42:52.000000000 +0100 @@ -90,9 +90,6 @@ EXPORT_SYMBOL(HYPERVISOR_shared_info); extern char hypercall_page[PAGE_SIZE]; EXPORT_SYMBOL(hypercall_page); -/* Allows setting of maximum possible memory size */ -unsigned long xen_override_max_pfn; - static int xen_panic_event(struct notifier_block *, unsigned long, void *); static struct notifier_block xen_panic_block = { xen_panic_event, NULL, 0 /* try to go last */ @@ -719,7 +716,6 @@ void __init setup_arch(char **cmdline_p) /* reserve ebda region */ if (ebda_addr) reserve_bootmem_generic(ebda_addr, ebda_size); -#endif #ifdef CONFIG_SMP /* @@ -732,6 +728,7 @@ void __init setup_arch(char **cmdline_p) /* Reserve SMP trampoline */ reserve_bootmem_generic(SMP_TRAMPOLINE_BASE, PAGE_SIZE); #endif +#endif #ifdef CONFIG_ACPI_SLEEP /* Index: head-2007-02-08/arch/x86_64/mm/init-xen.c =================================================================== --- head-2007-02-08.orig/arch/x86_64/mm/init-xen.c 2007-02-16 14:04:35.000000000 +0100 +++ head-2007-02-08/arch/x86_64/mm/init-xen.c 2007-02-16 14:04:58.000000000 +0100 @@ -77,7 +77,7 @@ extern unsigned long start_pfn; (((mfn_to_pfn((addr) >> PAGE_SHIFT)) << PAGE_SHIFT) + \ __START_KERNEL_map))) -static void early_make_page_readonly(void *va, unsigned int feature) +static void __meminit early_make_page_readonly(void *va, unsigned int feature) { unsigned long addr, _va = (unsigned long)va; pte_t pte, *ptep; @@ -377,15 +377,6 @@ __set_fixmap_user (enum fixed_addresses unsigned long __initdata table_start, table_end; -unsigned long get_machine_pfn(unsigned long addr) -{ - pud_t* pud = pud_offset_k(NULL, addr); - pmd_t* pmd = pmd_offset(pud, addr); - pte_t *pte = pte_offset_kernel(pmd, addr); - - return pte_mfn(*pte); -} - static __meminit void *alloc_static_page(unsigned long *phys) { unsigned long va = (start_pfn << PAGE_SHIFT) + __START_KERNEL_map; @@ -531,10 +522,6 @@ void __init xen_init_pt(void) { unsigned long addr, *page; - memset((void *)init_level4_pgt, 0, PAGE_SIZE); - memset((void *)level3_kernel_pgt, 0, PAGE_SIZE); - memset((void *)level2_kernel_pgt, 0, PAGE_SIZE); - /* Find the initial pte page that was built for us. */ page = (unsigned long *)xen_start_info->pt_base; addr = page[pgd_index(__START_KERNEL_map)]; @@ -595,7 +582,7 @@ void __init xen_init_pt(void) mk_kernel_pgd(__pa_symbol(level3_user_pgt))); } -void __init extend_init_mapping(unsigned long tables_space) +static void __init extend_init_mapping(unsigned long tables_space) { unsigned long va = __START_KERNEL_map; unsigned long phys, addr, *pte_page; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |