Changeset 4687fcd4 in mainline for uspace/drv/uhci/uhci.c


Ignore:
Timestamp:
2011-01-29T10:19:04Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
72e19f50
Parents:
67a1b78 (diff), a09128c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Changes from devel, break stuff.

File:
1 edited

Legend:

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

    r67a1b78 r4687fcd4  
    1313static int uhci_debug_checker(void *arg);
    1414
    15 int uhci_init(device_t *device, void *regs)
     15int uhci_init(device_t *device, void *regs, size_t reg_size)
    1616{
    1717        assert(device);
     
    4040        /* allow access to hc control registers */
    4141        regs_t *io;
    42         ret = pio_enable(regs, sizeof(regs_t), (void**)&io);
     42        assert(reg_size >= sizeof(regs_t));
     43        ret = pio_enable(regs, reg_size, (void**)&io);
    4344        CHECK_RET_FREE_INSTANCE("Failed to gain access to registers at %p.\n", io);
    4445        instance->registers = io;
Note: See TracChangeset for help on using the changeset viewer.