diff options
author | 2019-10-15 03:31:35 +0000 | |
---|---|---|
committer | 2019-10-15 03:31:35 +0000 | |
commit | d4ce8ef6e9b9ee3e216ced681f963a2ce288d25a (patch) | |
tree | f2eaec9a87fed158259b65fdcfb03f458db8a8c4 /sys/kern/kern_sched.c | |
parent | When setting the modification time on the retrieved file, use utimensat() (diff) | |
download | wireguard-openbsd-d4ce8ef6e9b9ee3e216ced681f963a2ce288d25a.tar.xz wireguard-openbsd-d4ce8ef6e9b9ee3e216ced681f963a2ce288d25a.zip |
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@
Diffstat (limited to 'sys/kern/kern_sched.c')
0 files changed, 0 insertions, 0 deletions