Changeset a36c4aa in mainline for uspace/drv/bus/usb/xhci


Ignore:
Timestamp:
2025-08-12T18:03:48Z (7 months ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
113fb4f
Parents:
2e9f284
Message:

Switch to binutils 2.45 and GCC 15.2

This requires a few minor modifications and one temporary workaround,
but should be otherwise painless.

The switch to binutils 2.45 is especially useful due to its fixes when
compiled by a C23 compiler.

Location:
uspace/drv/bus/usb/xhci
Files:
3 edited

Legend:

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

    r2e9f284 ra36c4aa  
    166166                                        speeds[psiv].major = major;
    167167                                        speeds[psiv].minor = minor;
    168                                         str_ncpy(speeds[psiv].name, 4, name.str, 4);
     168                                        memcpy(speeds[psiv].name, name.str, 4);
    169169                                        speeds[psiv].usb_speed = USB_SPEED_MAX;
    170170
  • uspace/drv/bus/usb/xhci/hw_struct/regs.h

    r2e9f284 ra36c4aa  
    551551
    552552typedef union {
    553         char str [4];
     553        char str[4] __attribute__((nonstring));
    554554        uint32_t packed;
    555555} xhci_sp_name_t;
  • uspace/drv/bus/usb/xhci/rh.h

    r2e9f284 ra36c4aa  
    5151 */
    5252typedef struct xhci_port_speed {
    53         char name [4];
     53        char name[4] __attribute__((nonstring));
    5454        uint8_t major, minor;
    5555        uint64_t rx_bps, tx_bps;
Note: See TracChangeset for help on using the changeset viewer.