Changes in uspace/drv/bus/usb/uhci/utils/malloc32.h [c67dbd6:e3122b0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/utils/malloc32.h
rc67dbd6 re3122b0 92 92 */ 93 93 static inline void free32(void *addr) 94 { 95 free(addr); 96 } 94 { free(addr); } 97 95 98 96 /** Create 4KB page mapping … … 100 98 * @return Address of the mapped page, NULL on failure. 101 99 */ 102 static inline void * get_page(void)100 static inline void * get_page(void) 103 101 { 104 uintptr_t phys; 105 void *address; 106 102 void *address, *phys; 107 103 const int ret = dmamem_map_anonymous(UHCI_REQUIRED_PAGE_SIZE, 108 DMAMEM_4GiB, AS_AREA_READ | AS_AREA_WRITE, 0, &phys, 109 &address); 110 111 return ((ret == EOK) ? address : NULL); 104 AS_AREA_READ | AS_AREA_WRITE, 0, &phys, &address); 105 return ret == EOK ? address : NULL; 112 106 } 113 107
Note:
See TracChangeset
for help on using the changeset viewer.