VirtualBox

Changeset 66930 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 17, 2017 10:45:48 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115459
Message:

Runtime/r0drv: Linux 4.12 5-level page table adaptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r66928 r66930  
    921921    if (RT_UNLIKELY(pgd_none(u.Global)))
    922922        return NULL;
    923 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
     923#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 11)
     924# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
    924925    u.Four  = *p4d_offset(&u.Global, ulAddr);
    925926    if (RT_UNLIKELY(p4d_none(u.Four)))
     
    935936    }
    936937    u.Upper = *pud_offset(&u.Four, ulAddr);
    937 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 11)
     938# else /* < 4.12 */
    938939    u.Upper = *pud_offset(&u.Global, ulAddr);
    939 #endif
    940 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 11)
     940# endif /* < 4.12 */
    941941    if (RT_UNLIKELY(pud_none(u.Upper)))
    942942        return NULL;
    943 #endif
    944 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
     943# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
    945944    if (pud_large(u.Upper))
    946945    {
     
    951950        return pfn_to_page(pfn);
    952951    }
    953 #endif
    954 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 11)
     952# endif
    955953    u.Middle = *pmd_offset(&u.Upper, ulAddr);
    956954#else  /* < 2.6.11 */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette