diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-04-15 02:59:42 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-04-15 02:59:42 +0000 |
commit | e7cc115e77b34d06f8bb620b0cc626580c391f4a (patch) | |
tree | 14d9376f9c5526efcf530ecffdfd0efa2072e313 /sys/dev | |
parent | b0d4a131c61617da4229d64a0f4ff52e63f091ff (diff) |
the myx_cmd struct has to be 4 byte aligned for use with bus_space
i don't know how this didn't blow up before.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_myxreg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_myxreg.h b/sys/dev/pci/if_myxreg.h index 10045f5221d..34b4cbb8e28 100644 --- a/sys/dev/pci/if_myxreg.h +++ b/sys/dev/pci/if_myxreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_myxreg.h,v 1.12 2019/04/15 00:51:45 dlg Exp $ */ +/* $OpenBSD: if_myxreg.h,v 1.13 2019/04/15 02:59:41 dlg Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org> @@ -91,7 +91,7 @@ struct myx_cmd { u_int32_t mc_addr_high; u_int32_t mc_addr_low; u_int8_t mc_pad[40]; /* pad up to 64 bytes */ -} __packed; +} __packed __aligned(4); struct myx_response { u_int32_t mr_data; |