Changeset 54229db in mainline for uspace/drv/uhci/utils/malloc32.h


Ignore:
Timestamp:
2011-01-28T17:31:48Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b6120d90
Parents:
d1984e0
Message:

Fixed: return phys address instead of frame number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/utils/malloc32.h

    rd1984e0 r54229db  
    4646        uintptr_t result;
    4747        int ret = as_get_physical_mapping(addr, &result);
     48
    4849        assert(ret == 0);
    49         return (void*)result;
     50        return (void*)(result | ((uintptr_t)addr & 0xfff));
    5051}
    5152
Note: See TracChangeset for help on using the changeset viewer.