In initvalues(start_info_t) function at "[[src]]/sys/i386/xen/xen_machdep.c"

IdlePDTnew, IdlePTDnew, etc are only declared under PAE enabled guests as
following:

#ifdef PAE
        vm_paddr_t IdlePDPTma, IdlePDPTnewma;
        vm_paddr_t IdlePTDnewma[4];
        pd_entry_t *IdlePDPTnew, *IdlePTDnew;
#else
        vm_paddr_t pdir_shadow_ma;
#endif

However It's used later in the function without constraining it to certain
guests ( without #ifdef PAE ), one of those is

memcpy(((uint8_t *)IdlePTDnew) + ((unsigned int)(KERNBASE >> 18)),
            ((uint8_t *)IdlePTD) + ((KERNBASE >> 18) & PAGE_MASK),
            l1_pages*sizeof(pt_entry_t))


Is the current non-PAE xen guest implementation broke intentionally, or is
this a merge issue or something ?

( This issue arises as a compile-time error as soon as you remove the
"options PAE" in the XEN configuration file for the build )


-- 
Karim Allah Ahmed.
LinkedIn <http://eg.linkedin.com/pub/karim-allah-ahmed/13/829/550/>
_______________________________________________
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to "freebsd-xen-unsubscr...@freebsd.org"

Reply via email to