Changeset 26e7d6d in mainline for uspace/drv/bus/usb/uhci/utils/malloc32.h
- Timestamp:
- 2011-09-19T16:31:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a347a11
- Parents:
- 3842a955 (diff), 086290d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/utils/malloc32.h
r3842a955 r26e7d6d 50 50 * @return Physical address if exists, NULL otherwise. 51 51 */ 52 static inline uintptr_t addr_to_phys( void *addr)52 static inline uintptr_t addr_to_phys(const void *addr) 53 53 { 54 54 if (addr == NULL) … … 102 102 if (free_address == 0) 103 103 return NULL; 104 void * ret= as_area_create(free_address, UHCI_REQUIRED_PAGE_SIZE,104 void *address = as_area_create(free_address, UHCI_REQUIRED_PAGE_SIZE, 105 105 AS_AREA_READ | AS_AREA_WRITE); 106 if ( ret!= free_address)106 if (address != free_address) 107 107 return NULL; 108 return ret; 108 return address; 109 } 110 /*----------------------------------------------------------------------------*/ 111 static inline void return_page(void *page) 112 { 113 if (page) 114 as_area_destroy(page); 109 115 } 110 116
Note:
See TracChangeset
for help on using the changeset viewer.