Changeset 7dd3318 in mainline for uspace/drv/uhci-hcd/utils/malloc32.h
- Timestamp:
- 2011-02-12T02:00:54Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 83c439c
- Parents:
- f6309b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/utils/malloc32.h
rf6309b6 r7dd3318 45 45 #define UHCI_REQUIRED_PAGE_SIZE 4096 46 46 47 static inline void *addr_to_phys(void *addr)47 static inline uintptr_t addr_to_phys(void *addr) 48 48 { 49 49 uintptr_t result; … … 51 51 52 52 assert(ret == 0); 53 return ( void*)(result | ((uintptr_t)addr & 0xfff));53 return (result | ((uintptr_t)addr & 0xfff)); 54 54 } 55 55
Note:
See TracChangeset
for help on using the changeset viewer.