Changeset fbcdeb8 in mainline for uspace/drv
- Timestamp:
- 2011-12-19T17:30:39Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 58f6229
- Parents:
- 24cf31f1
- Location:
- uspace/drv/bus/usb
- Files:
-
- 2 edited
-
uhci/utils/malloc32.h (modified) (1 diff)
-
usbmast/main.c (modified) (1 diff)
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 } -
uspace/drv/bus/usb/usbmast/main.c
r24cf31f1 rfbcdeb8 300 300 return; 301 301 } 302 303 comm_buf = as_get_mappable_page(comm_size);304 if (comm_buf == NULL) {302 303 (void) async_share_out_finalize(callid, &comm_buf); 304 if (comm_buf == (void *) -1) { 305 305 async_answer_0(callid, EHANGUP); 306 306 return; 307 307 } 308 309 (void) async_share_out_finalize(callid, comm_buf); 310 308 311 309 mfun = (usbmast_fun_t *) ((ddf_fun_t *)arg)->driver_data; 312 310
Note:
See TracChangeset
for help on using the changeset viewer.
