[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] linux/x86_64: miscellaneous initialization code cleanup
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1171641901 0 # Node ID 7c739272bac890732a84dcb26d3601052ac494af # Parent efffaad380899928158e8be353aad8052684b517 linux/x86_64: miscellaneous initialization code cleanup Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- linux-2.6-xen-sparse/arch/x86_64/kernel/setup-xen.c | 5 +---- linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c | 17 ++--------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff -r efffaad38089 -r 7c739272bac8 linux-2.6-xen-sparse/arch/x86_64/kernel/setup-xen.c --- a/linux-2.6-xen-sparse/arch/x86_64/kernel/setup-xen.c Fri Feb 16 15:50:02 2007 +0000 +++ b/linux-2.6-xen-sparse/arch/x86_64/kernel/setup-xen.c Fri Feb 16 16:05:01 2007 +0000 @@ -90,9 +90,6 @@ extern char hypercall_page[PAGE_SIZE]; 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 */ @@ -717,7 +714,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 /* @@ -729,6 +725,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 diff -r efffaad38089 -r 7c739272bac8 linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c --- a/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c Fri Feb 16 15:50:02 2007 +0000 +++ b/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c Fri Feb 16 16:05:01 2007 +0000 @@ -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) { @@ -532,10 +523,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)]; @@ -596,7 +583,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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |