Ignore:
Timestamp:
2018-01-10T13:29:52Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
398a94c
Parents:
f92f6b1
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-10 13:28:21)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-10 13:29:52)
Message:

xhci: fix errors reported by clang

Asserts were unnecessary, because the transfer type is an enum.
DMAMEM_4GiB is an uintptr_t constant.
There shall be at least one ring segment, and clang cannot infer that.
TRBs shall be 16-byte aligned to take aligned pointers from it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hw_struct/trb.h

    rf92f6b1 r4a00bc9  
    9696        xhci_dword_t status;
    9797        xhci_dword_t control;
    98 } __attribute__((packed)) xhci_trb_t;
     98} __attribute__((packed)) __attribute__((aligned(16))) xhci_trb_t;
    9999
    100100#define TRB_TYPE(trb)           XHCI_DWORD_EXTRACT((trb).control, 15, 10)
Note: See TracChangeset for help on using the changeset viewer.