WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] unecessary variable rename which lead to unecessary chan

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] unecessary variable rename which lead to unecessary changes between mainline and xen
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 12 Apr 2005 12:07:22 +0000
Delivery-date: Wed, 13 Apr 2005 23:03:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1292, 2005/04/12 13:07:22+01:00, vh249@xxxxxxxxxxxxxxxxxxxxxx

        unecessary variable rename which lead to unecessary changes between 
mainline and xen
        
        Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>



 init.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/i386/mm/init.c 
b/linux-2.6.11-xen-sparse/arch/xen/i386/mm/init.c
--- a/linux-2.6.11-xen-sparse/arch/xen/i386/mm/init.c   2005-04-13 19:03:34 
-04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/i386/mm/init.c   2005-04-13 19:03:34 
-04:00
@@ -326,8 +326,8 @@
 static void __init pagetable_init (void)
 {
        unsigned long vaddr;
+       pgd_t *pgd_base = swapper_pg_dir;
        pgd_t *old_pgd = (pgd_t *)xen_start_info.pt_base;
-       pgd_t *new_pgd = swapper_pg_dir;
 
 #ifdef CONFIG_X86_PAE
        int i;
@@ -353,16 +353,16 @@
         * page directory, write-protect the new page directory, then switch to
         * it. We clean up by write-enabling and then freeing the old page dir.
         */
-       memcpy(new_pgd, old_pgd, PTRS_PER_PGD_NO_HV*sizeof(pgd_t));
-       make_page_readonly(new_pgd);
-       xen_pgd_pin(__pa(new_pgd));
-       load_cr3(new_pgd);
+       memcpy(pgd_base, old_pgd, PTRS_PER_PGD_NO_HV*sizeof(pgd_t));
+       make_page_readonly(pgd_base);
+       xen_pgd_pin(__pa(pgd_base));
+       load_cr3(pgd_base);
        xen_pgd_unpin(__pa(old_pgd));
        make_page_writable(old_pgd);
        __flush_tlb_all();
        free_bootmem(__pa(old_pgd), PAGE_SIZE);
 
-       kernel_physical_mapping_init(new_pgd);
+       kernel_physical_mapping_init(pgd_base);
        remap_numa_kva();
 
        /*
@@ -370,9 +370,9 @@
         * created - mappings will be set by set_fixmap():
         */
        vaddr = __fix_to_virt(__end_of_fixed_addresses - 1) & PMD_MASK;
-       page_table_range_init(vaddr, 0, new_pgd);
+       page_table_range_init(vaddr, 0, pgd_base);
 
-       permanent_kmaps_init(new_pgd);
+       permanent_kmaps_init(pgd_base);
 
 #ifdef CONFIG_X86_PAE
        /*
@@ -382,7 +382,7 @@
         * All user-space mappings are explicitly cleared after
         * SMP startup.
         */
-       new_pgd[0] = new_pgd[USER_PTRS_PER_PGD];
+       pgd_base[0] = pgd_base[USER_PTRS_PER_PGD];
 #endif
 }
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] unecessary variable rename which lead to unecessary changes between mainline and xen, BitKeeper Bot <=