[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [IA64] cleanup in domain.c



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID f163677f87672d000ea77179690663663ab42a1a
# Parent  212eb6a2d8cd3c9bad9026b07f4ff6f387658164
[IA64] cleanup in domain.c

Remove unused code.
More static added.

Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>

diff -r 212eb6a2d8cd -r f163677f8767 xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c        Tue Mar 21 16:55:04 2006
+++ b/xen/arch/ia64/xen/domain.c        Tue Mar 21 16:55:44 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 212eb6a2d8cd -r f163677f8767 xen/arch/ia64/xen/xenmisc.c
--- a/xen/arch/ia64/xen/xenmisc.c       Tue Mar 21 16:55:04 2006
+++ b/xen/arch/ia64/xen/xenmisc.c       Tue Mar 21 16:55:44 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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.