Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/utils/malloc32.h

    rd4d74dc rf8dfb40  
    3737#include <assert.h>
    3838#include <malloc.h>
    39 #include <unistd.h>
    4039#include <errno.h>
    4140#include <mem.h>
     
    5756        uintptr_t result;
    5857        int ret = as_get_physical_mapping(addr, &result);
    59        
     58
    6059        if (ret != EOK)
    6160                return 0;
    62        
    63         return result;
     61        return (result | ((uintptr_t)addr & 0xfff));
    6462}
    6563/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.