VirtualBox

Changeset 107034 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Nov 18, 2024 9:19:23 PM (2 months ago)
Author:
vboxsync
Message:

iprt: Linux: Add initial support for RHEL 9.6 kernel (fix for pre 6.5 kernels), bugref:10482.

File:
1 edited

Legend:

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

    r106311 r107034  
    656656        /* ARM64 architecture has no _PAGE_NX, _PAGE_PRESENT and _PAGE_RW flags.
    657657         * Closest alternatives would be PTE_PXN, PTE_UXN, PROT_DEFAULT and PTE_WRITE. */
     658#  if RTLNX_VER_MIN(6,5,0)
    658659        pgprot_val(fPg) = _PAGE_KERNEL; /* (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL). */
     660#  else /* < 6.5.0 */
     661        pgprot_val(fPg) = PROT_NORMAL; /* (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL). */
     662#  endif /* 6.5.0 */
    659663# else /* !RT_ARCH_ARM64 */
    660664        pgprot_val(fPg) = _PAGE_PRESENT | _PAGE_RW;
Note: See TracChangeset for help on using the changeset viewer.

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