Changes in uspace/drv/bus/usb/uhci/utils/malloc32.h [e2718e1:fbcdeb8] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/uhci/utils/malloc32.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/utils/malloc32.h
re2718e1 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.
