Ignore:
Timestamp:
2011-12-22T12:04:54Z (14 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3819ce5
Parents:
65d7b0a (diff), a438de48 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with mainline

File:
1 edited

Legend:

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

    r65d7b0a r1440eae  
    9898static inline void * get_page(void)
    9999{
    100         void *free_address = as_get_mappable_page(UHCI_REQUIRED_PAGE_SIZE);
    101         if (free_address == 0)
     100        void *address = as_area_create((void *) -1, UHCI_REQUIRED_PAGE_SIZE,
     101            AS_AREA_READ | AS_AREA_WRITE);
     102        if (address == (void *) -1)
    102103                return NULL;
    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;
     104       
    107105        return address;
    108106}
Note: See TracChangeset for help on using the changeset viewer.