VirtualBox

Changeset 29877 in vbox for trunk


Ignore:
Timestamp:
May 28, 2010 11:23:53 PM (15 years ago)
Author:
vboxsync
Message:

memobj-r0drv-freebsd.c: Fix low allocs if kmem_alloc_attr is used

File:
1 edited

Legend:

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

    r29765 r29877  
    332332        return VERR_NO_MEMORY;
    333333
     334    *ppMem = &pMemFreeBSD->Core;
     335
    334336    return VINF_SUCCESS;
    335337#else
     
    883885            return VM_PAGE_TO_PHYS(pMemFreeBSD->u.Phys.apPages[iPage]);
    884886
     887#ifdef USE_KMEM_ALLOC_ATTR
     888        case RTR0MEMOBJTYPE_LOW:
     889        {
     890            vm_offset_t pb = (vm_offset_t)pMemFreeBSD->Core.pv + (iPage << PAGE_SHIFT);
     891            return vtophys(pb);
     892        }
     893#else
     894        case RTR0MEMOBJTYPE_LOW:
     895#endif
    885896        case RTR0MEMOBJTYPE_RES_VIRT:
    886         case RTR0MEMOBJTYPE_LOW:
    887897        default:
    888898            return NIL_RTHCPHYS;
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