CVSROOT: /cvs Module name: src Changes by: v...@cvs.openbsd.org 2019/10/14 21:31:35
Modified files: sys/dev/usb : xhcireg.h Log message: Fix compiler's view of the alignment of xhci structs. Because the struct fields are naturally aligned, it is enough to remove __packed. This lets the compiler generate saner machine code. In particular, now the compiler does not use lwl/lwr and swl/swr instructions on mips64 for changing xhci descriptors. The descriptors are properly aligned in memory, so lwl/lwr and swl/swr end up doing a redundant load or store. Feedback from guenther@ deraadt@ Tested on amd64 by krw@ OK mpi@ krw@ kettenis@