Ignore:
Timestamp:
2013-09-09T21:48:12Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c67dbd6
Parents:
2e2c18a1
Message:

improve the API of physmem_map(), dmamem_map() and dmamem_map_anonymous()
the "constraint" argument of dmamem_map_anonymous() should be used to specify bits disallowed in the physical frame address

File:
1 edited

Legend:

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

    r2e2c18a1 r8442d10  
    100100static inline void * get_page(void)
    101101{
    102         void *address, *phys;
     102        uintptr_t phys;
     103        void *address;
     104       
    103105        const int ret = dmamem_map_anonymous(UHCI_REQUIRED_PAGE_SIZE,
    104             AS_AREA_READ | AS_AREA_WRITE, 0, &phys, &address);
     106            DMAMEM_4GiB, AS_AREA_READ | AS_AREA_WRITE, 0, &phys,
     107            &address);
    105108        return ret == EOK ? address : NULL;
    106109}
Note: See TracChangeset for help on using the changeset viewer.