VirtualBox

Ignore:
Timestamp:
Mar 27, 2020 3:49:44 PM (5 years ago)
Author:
vboxsync
Message:

Linux: ticketref:19312 Linux: kernel 5.6 - we need changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c

    r82968 r83471  
    843843        if (!rcLnx)
    844844        {
     845#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
     846            /*
     847             * ioremap() defaults to no caching since the 2.6 kernels.
     848             * ioremap_nocache() has been removed finally in 5.6-rc1.
     849             */
     850            RTR0PTR R0PtrMapping = ioremap(pci_resource_start(pPciDev, iRegion),
     851                                           pci_resource_len(pPciDev, iRegion));
     852#else /* KERNEL_VERSION < 2.6.25 */
    845853            /* For now no caching, try to optimize later. */
    846854            RTR0PTR R0PtrMapping = ioremap_nocache(pci_resource_start(pPciDev, iRegion),
    847855                                                   pci_resource_len(pPciDev, iRegion));
    848 
     856#endif /* KERNEL_VERSION < 2.6.25 */
    849857            if (R0PtrMapping != NIL_RTR0PTR)
    850858                pIns->aRegionR0Mapping[iRegion] = R0PtrMapping;
    851859            else
    852860            {
     861#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
     862                vbpci_printk(KERN_DEBUG, pPciDev, "ioremap() failed\n");
     863#else
    853864                vbpci_printk(KERN_DEBUG, pPciDev, "ioremap_nocache() failed\n");
     865#endif
    854866                pci_release_region(pPciDev, iRegion);
    855867                rc = VERR_MAP_FAILED;
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