Changeset de0e6b3 in mainline for uspace/drv/uhci/uhci.c


Ignore:
Timestamp:
2011-01-28T12:43:07Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d93ff502
Parents:
45c4f5a
Message:

Used usbmem allocator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/uhci.c

    r45c4f5a rde0e6b3  
    33#include <usb/usb.h>
    44
    5 #include "translating_malloc.h"
     5#include "utils/malloc32.h"
    66
    77#include "debug.h"
     
    6161
    6262        instance->frame_list =
    63           trans_malloc(sizeof(link_pointer_t) * UHCI_FRAME_LIST_COUNT);
     63          malloc32(sizeof(link_pointer_t) * UHCI_FRAME_LIST_COUNT);
    6464        if (instance->frame_list == NULL) {
    6565                uhci_print_error("Failed to allocate frame list pointer.\n");
     
    200200                        callback_dispose(job); \
    201201                } \
    202                 if (td) { trans_free(td); } \
     202                if (td) { free32(td); } \
    203203                return ret; \
    204204        } else (void) 0
     
    243243                                uhci_print_verbose("Cleaning fibril found inactive transport.");
    244244                                instance->transfers[i].first = transfer->next_va;
    245                                 transfer_descriptor_fini(transfer);
    246                                 trans_free(transfer);
     245                                transfer_descriptor_dispose(transfer);
    247246                        }
    248247                        if (!instance->transfers[i].first)
Note: See TracChangeset for help on using the changeset viewer.