Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d09d108 in mainline


Ignore:
Timestamp:
2017-10-05T08:06:38Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
0a42d381
Parents:
8afb485
Message:

ehci: fix irq code broken by rev 2641

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/hc.c

    r8afb485 rd09d108  
    130130        memcpy(code->cmds, ehci_irq_commands, sizeof(ehci_irq_commands));
    131131
    132         code->cmds[0].addr = (void *) &instance->registers->usbsts;
    133         code->cmds[3].addr = (void *) &instance->registers->usbsts;
     132        ehci_regs_t *registers =
     133                (ehci_regs_t *)(RNGABSPTR(regs) + EHCI_RD8(instance->caps->caplength));
     134        code->cmds[0].addr = (void *) &registers->usbsts;
     135        code->cmds[3].addr = (void *) &registers->usbsts;
    134136        EHCI_WR(code->cmds[1].value, EHCI_USED_INTERRUPTS);
    135137
Note: See TracChangeset for help on using the changeset viewer.