Changeset 7943c43 in mainline for uspace/drv/bus/usb/uhci/utils/malloc32.h
- Timestamp:
- 2012-01-16T22:45:38Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32817cc, 3fe58d3c
- Parents:
- 9117ef9b (diff), 3ea725e (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/utils/malloc32.h
r9117ef9b r7943c43 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.