VirtualBox

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


Ignore:
Timestamp:
Aug 11, 2020 6:38:50 PM (4 years ago)
Author:
vboxsync
Message:

IPRT,lnx-kmods: s/VBOX_RHEL_MAJ_PREREQ/RTLNX_RHEL_MAJ_PREREQ/ and added RTLNX_RHEL_PREREQ. Eliminated confusing RHEL_81 & RHEL_82 defines from the-linux-kernel.h.

Location:
trunk/src/VBox/Runtime/r0drv/linux
Files:
2 edited

Legend:

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

    r85698 r85702  
    6767{
    6868    IPRT_LINUX_SAVE_EFL_AC();
    69 #if RTLNX_VER_MIN(5,0,0) || defined(RHEL_81)
     69#if RTLNX_VER_MIN(5,0,0) || RTLNX_RHEL_PREREQ(8,1)
    7070    bool fRc = access_ok((void *)R3Ptr, 1);
    7171#else
     
    8787#else
    8888# error "PORT ME"
    89 #if RTLNX_VER_MIN(5,0,0) || defined(RHEL_81)
     89#if RTLNX_VER_MIN(5,0,0) || RTLNX_RHEL_PREREQ(8,1)
    9090    return !access_ok(pv, 1);
    9191#else
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r85698 r85702  
    474474RTDECL(struct page *) rtR0MemObjLinuxVirtToPage(void *pv);
    475475
    476 /*
    477  * Guest Additions changes specific to Red Hat 8.1 and later.
    478  */
    479 #ifdef RHEL_RELEASE_CODE
    480 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 1)
    481 #  define RHEL_81
    482 # endif
    483 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 2)
    484 #  define RHEL_82
    485 # endif
    486 #endif
    487 
    488476#endif /* !IPRT_INCLUDED_SRC_r0drv_linux_the_linux_kernel_h */
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