# HG changeset patch # User tristan.gingold@xxxxxxxx # Node ID 2f8c0116e20de8c50122de2f29a546615c2f8b71 # Parent 901c84763e26afc304ff6173a83e92938b7cf2fe Remove unused code. More static added. Signed-off-by: Tristan Gingold diff -r 901c84763e26 -r 2f8c0116e20d xen/arch/ia64/xen/domain.c --- a/xen/arch/ia64/xen/domain.c Tue Mar 21 11:44:24 2006 +++ b/xen/arch/ia64/xen/domain.c Tue Mar 21 11:54:21 2006 @@ -480,7 +480,7 @@ } /* allocate new page for domain and map it to the specified metaphysical addr */ -struct page_info * assign_new_domain_page(struct domain *d, unsigned long mpaddr) +static struct page_info * assign_new_domain_page(struct domain *d, unsigned long mpaddr) { struct mm_struct *mm = d->arch.mm; struct page_info *pt, *p = (struct page_info *)0; @@ -738,7 +738,7 @@ } } -void loaddomainelfimage(struct domain *d, unsigned long image_start) +static void loaddomainelfimage(struct domain *d, unsigned long image_start) { char *elfbase = (char *) image_start; //Elf_Ehdr *ehdr = (Elf_Ehdr *)image_start; @@ -797,46 +797,6 @@ } } -int -parsedomainelfimage(char *elfbase, unsigned long elfsize, unsigned long *entry) -{ - Elf_Ehdr ehdr; - - copy_memory(&ehdr,elfbase,sizeof(Elf_Ehdr)); - - if ( !elf_sanity_check(&ehdr) ) { - printk("ELF sanity check failed.\n"); - return -EINVAL; - } - - if ( (ehdr.e_phoff + (ehdr.e_phnum * ehdr.e_phentsize)) > elfsize ) - { - printk("ELF program headers extend beyond end of image.\n"); - return -EINVAL; - } - - if ( (ehdr.e_shoff + (ehdr.e_shnum * ehdr.e_shentsize)) > elfsize ) - { - printk("ELF section headers extend beyond end of image.\n"); - return -EINVAL; - } - -#if 0 - /* Find the section-header strings table. */ - if ( ehdr.e_shstrndx == SHN_UNDEF ) - { - printk("ELF image has no section-header strings table (shstrtab).\n"); - return -EINVAL; - } -#endif - - *entry = ehdr.e_entry; - printf("parsedomainelfimage: entry point = 0x%lx\n", *entry); - - return 0; -} - - void alloc_dom0(void) { #ifdef CONFIG_DOMAIN0_CONTIGUOUS @@ -871,7 +831,7 @@ * handled with order > 0 request. Dom0 requires that bit set to * allocate memory for other domains. */ -void physdev_init_dom0(struct domain *d) +static void physdev_init_dom0(struct domain *d) { if (iomem_permit_access(d, 0UL, ~0UL)) BUG(); @@ -879,7 +839,7 @@ BUG(); } -unsigned int vmx_dom0 = 0; +static unsigned int vmx_dom0 = 0; int construct_dom0(struct domain *d, unsigned long image_start, unsigned long image_len, unsigned long initrd_start, unsigned long initrd_len, diff -r 901c84763e26 -r 2f8c0116e20d xen/arch/ia64/xen/xenmisc.c --- a/xen/arch/ia64/xen/xenmisc.c Tue Mar 21 11:44:24 2006 +++ b/xen/arch/ia64/xen/xenmisc.c Tue Mar 21 11:54:21 2006 @@ -124,11 +124,6 @@ // from arch/x86/memory.c /////////////////////////////// -void init_percpu_info(void) -{ - dummy(); - //memset(percpu_info, 0, sizeof(percpu_info)); -} void free_page_type(struct page_info *page, u32 type) { @@ -201,8 +196,6 @@ { printk("dump_pageframe_info not implemented\n"); } - -int nmi_count(int x) { return x; } /////////////////////////////// // called from arch/ia64/head.S