Changeset fbcdeb8 in mainline for uspace/drv/bus/usb/uhci/utils/malloc32.h
- Timestamp:
- 2011-12-19T17:30:39Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 58f6229
- Parents:
- 24cf31f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/utils/malloc32.h
r24cf31f1 rfbcdeb8 98 98 static inline void * get_page(void) 99 99 { 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) 102 103 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 107 105 return address; 108 106 }
Note:
See TracChangeset
for help on using the changeset viewer.