summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/mcd.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-06-03 13:06:06 +0000
committerkettenis <kettenis@openbsd.org>2011-06-03 13:06:06 +0000
commitac5cfe997bde022e4fc9ebeb4c2552b3b2b44be4 (patch)
treeea295bda1d4f613e1a515e6e9cc3cf7aaca8fc03 /sys/dev/isa/mcd.c
parentReorganize the way command line options are parsed and stored. (diff)
downloadwireguard-openbsd-ac5cfe997bde022e4fc9ebeb4c2552b3b2b44be4.tar.xz
wireguard-openbsd-ac5cfe997bde022e4fc9ebeb4c2552b3b2b44be4.zip
Fix em_write_pci_cfg() and em_read_pci_cfg() to avoid unaligned access, and
make em_write_pci_cfg() do a proper read/modify/write cycle, to avoid changing the neighbouring 16 bits. Also remove the comment in em_pci_set_mwi() and em_pci_clear_mwi(); writting 0 to the status bits in the command/status word is the right thing to do. Fixes a panic on sparc64 and other strict alignment architectures. ok deraadt@
Diffstat (limited to 'sys/dev/isa/mcd.c')
0 files changed, 0 insertions, 0 deletions