Changeset 6843a9c in mainline for uspace/drv/bus/usb/ohci/utils/malloc32.h
- Timestamp:
- 2012-06-29T13:02:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 722912e
- Parents:
- ba72f2b (diff), 0bbd13e (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/utils/malloc32.h
rba72f2b r6843a9c 37 37 #include <assert.h> 38 38 #include <malloc.h> 39 #include <unistd.h> 39 40 #include <errno.h> 40 41 #include <mem.h> … … 56 57 uintptr_t result; 57 58 int ret = as_get_physical_mapping(addr, &result); 58 59 59 60 if (ret != EOK) 60 61 return 0; 61 return (result | ((uintptr_t)addr & 0xfff)); 62 63 return result; 62 64 } 63 65 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.