[BACK]Return to x86_xpmap.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / xen / x86

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/xen/x86/x86_xpmap.c between version 1.8.10.2 and 1.9

version 1.8.10.2, 2008/12/13 01:13:43 version 1.9, 2008/09/05 13:37:24
Line 123  static char XBUF[256];
Line 123  static char XBUF[256];
 #endif  #endif
   
 volatile shared_info_t *HYPERVISOR_shared_info;  volatile shared_info_t *HYPERVISOR_shared_info;
 /* Xen requires the start_info struct to be page aligned */  union start_info_union start_info_union;
 union start_info_union start_info_union __aligned(PAGE_SIZE);  
 unsigned long *xpmap_phys_to_machine_mapping;  unsigned long *xpmap_phys_to_machine_mapping;
   
 void xen_failsafe_handler(void);  void xen_failsafe_handler(void);
Line 554  xen_pmap_bootstrap(void)
Line 553  xen_pmap_bootstrap(void)
         mapsize += NBPG;          mapsize += NBPG;
   
 #ifdef DOM0OPS  #ifdef DOM0OPS
         if (xendomain_is_dom0()) {          if (xen_start_info.flags & SIF_INITDOMAIN) {
                 /* space for ISA I/O mem */                  /* space for ISA I/O mem */
                 mapsize += IOM_SIZE;                  mapsize += IOM_SIZE;
         }          }
Line 669  xen_bootstrap_tables (vaddr_t old_pgd, v
Line 668  xen_bootstrap_tables (vaddr_t old_pgd, v
         if (final)          if (final)
                 atdevbase = map_end;                  atdevbase = map_end;
 #ifdef DOM0OPS  #ifdef DOM0OPS
         if (final && xendomain_is_dom0()) {          if (final && (xen_start_info.flags & SIF_INITDOMAIN)) {
                 /* ISA I/O mem */                  /* ISA I/O mem */
                 map_end += IOM_SIZE;                  map_end += IOM_SIZE;
         }          }
Line 677  xen_bootstrap_tables (vaddr_t old_pgd, v
Line 676  xen_bootstrap_tables (vaddr_t old_pgd, v
   
         __PRINTK(("xen_bootstrap_tables text_end 0x%lx map_end 0x%lx\n",          __PRINTK(("xen_bootstrap_tables text_end 0x%lx map_end 0x%lx\n",
             text_end, map_end));              text_end, map_end));
         __PRINTK(("console 0x%lx ", xen_start_info.console.domU.mfn));          __PRINTK(("console 0x%lx ", xen_start_info.console_mfn));
         __PRINTK(("xenstore 0x%lx\n", xen_start_info.store_mfn));          __PRINTK(("xenstore 0x%lx\n", xen_start_info.store_mfn));
   
         /*          /*
Line 778  xen_bootstrap_tables (vaddr_t old_pgd, v
Line 777  xen_bootstrap_tables (vaddr_t old_pgd, v
                         }                          }
 #ifdef XEN3  #ifdef XEN3
                         if ((xpmap_ptom_masked(page - KERNBASE) >> PAGE_SHIFT)                          if ((xpmap_ptom_masked(page - KERNBASE) >> PAGE_SHIFT)
                             == xen_start_info.console.domU.mfn) {                              == xen_start_info.console_mfn) {
                                 xencons_interface = (void *)page;                                  xencons_interface = (void *)page;
                                 pte[pl1_pi(page)] = xen_start_info.console.domU.mfn;                                  pte[pl1_pi(page)] = xen_start_info.console_mfn;
                                 pte[pl1_pi(page)] <<= PAGE_SHIFT;                                  pte[pl1_pi(page)] <<= PAGE_SHIFT;
                                 __PRINTK(("xencons_interface "                                  __PRINTK(("xencons_interface "
                                     "va 0x%lx pte 0x%" PRIx64 "\n",                                      "va 0x%lx pte 0x%" PRIx64 "\n",

Legend:
Removed from v.1.8.10.2  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>