Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/utils/malloc32.h

    rfbcdeb8 re2718e1  
    9898static inline void * get_page(void)
    9999{
    100         void *address = as_area_create((void *) -1, UHCI_REQUIRED_PAGE_SIZE,
    101             AS_AREA_READ | AS_AREA_WRITE);
    102         if (address == (void *) -1)
     100        void *free_address = as_get_mappable_page(UHCI_REQUIRED_PAGE_SIZE);
     101        if (free_address == 0)
    103102                return NULL;
    104        
     103        void *address = as_area_create(free_address, UHCI_REQUIRED_PAGE_SIZE,
     104                  AS_AREA_READ | AS_AREA_WRITE);
     105        if (address != free_address)
     106                return NULL;
    105107        return address;
    106108}
Note: See TracChangeset for help on using the changeset viewer.