Changeset c67dbd6 in mainline for uspace/drv/bus/usb/uhci/utils/malloc32.h
- Timestamp:
- 2013-09-09T21:51:32Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8cbf1c3
- Parents:
- 8442d10
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/utils/malloc32.h
r8442d10 rc67dbd6 92 92 */ 93 93 static inline void free32(void *addr) 94 { free(addr); } 94 { 95 free(addr); 96 } 95 97 96 98 /** Create 4KB page mapping … … 98 100 * @return Address of the mapped page, NULL on failure. 99 101 */ 100 static inline void * 102 static inline void *get_page(void) 101 103 { 102 104 uintptr_t phys; … … 106 108 DMAMEM_4GiB, AS_AREA_READ | AS_AREA_WRITE, 0, &phys, 107 109 &address); 108 return ret == EOK ? address : NULL; 110 111 return ((ret == EOK) ? address : NULL); 109 112 } 110 113
Note:
See TracChangeset
for help on using the changeset viewer.