Changeset 8442d10 in mainline for uspace/drv/bus/usb/uhci/utils/malloc32.h
- Timestamp:
- 2013-09-09T21:48:12Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c67dbd6
- Parents:
- 2e2c18a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/utils/malloc32.h
r2e2c18a1 r8442d10 100 100 static inline void * get_page(void) 101 101 { 102 void *address, *phys; 102 uintptr_t phys; 103 void *address; 104 103 105 const int ret = dmamem_map_anonymous(UHCI_REQUIRED_PAGE_SIZE, 104 AS_AREA_READ | AS_AREA_WRITE, 0, &phys, &address); 106 DMAMEM_4GiB, AS_AREA_READ | AS_AREA_WRITE, 0, &phys, 107 &address); 105 108 return ret == EOK ? address : NULL; 106 109 }
Note:
See TracChangeset
for help on using the changeset viewer.