Changeset 2aaf804 in mainline for uspace/drv/uhci-hcd/utils/malloc32.h


Ignore:
Timestamp:
2011-05-17T10:14:50Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5f94a0c
Parents:
5e6e50b
Message:

Use provided barriers instead of asm constructs.

Use warning instead of assert if malloc32 falls back to memalign.

File:
1 edited

Legend:

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

    r5e6e50b r2aaf804  
    7474        if (size <= SLAB_ELEMENT_SIZE)
    7575                return slab_malloc_g();
    76         assert(false);
     76        usb_log_warning("Requested %zu bytes, current allocator can't handle "
     77            "that amount, pray that the standard malloc will suffice.");
    7778        return memalign(UHCI_STRCUTURES_ALIGNMENT, size);
    7879}
Note: See TracChangeset for help on using the changeset viewer.