Changes in uspace/drv/bus/usb/uhci/utils/malloc32.h [75f9dcd:af2b806] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/utils/malloc32.h
r75f9dcd raf2b806 62 62 } 63 63 /*----------------------------------------------------------------------------*/ 64 /** DMA mallocsimulator64 /** Physical mallocator simulator 65 65 * 66 66 * @param[in] size Size of the required memory space 67 * @return Address of the al igned and big enough memory place, NULL on failure.67 * @return Address of the alligned and big enough memory place, NULL on failure. 68 68 */ 69 static inline void * malloc32(size_t size) 70 { 69 static inline void * malloc32(size_t size) { 71 70 /* This works only when the host has less than 4GB of memory as 72 71 * physical address needs to fit into 32 bits */ … … 84 83 } 85 84 /*----------------------------------------------------------------------------*/ 86 /** DMA mallocsimulator85 /** Physical mallocator simulator 87 86 * 88 87 * @param[in] addr Address of the place allocated by malloc32 89 88 */ 90 static inline void free32(void *addr) 91 { free(addr); } 89 static inline void free32(void *addr) { 90 if (!addr) 91 return; 92 free(addr); 93 } 92 94 /*----------------------------------------------------------------------------*/ 93 95 /** Create 4KB page mapping
Note:
See TracChangeset
for help on using the changeset viewer.