diff options
author | mux <mux@FreeBSD.org> | 2003-05-12 18:15:33 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-05-12 18:15:33 +0000 |
commit | 1170968d0c663c5a40d34b8e336c1c7be3c1ff13 (patch) | |
tree | f04b7cc0ee669b85758f0703fb461daae0ad699b /sys/dev/fxp | |
parent | d6938ff673aa3c70c8930262e5c2cb754293487f (diff) | |
download | FreeBSD-src-1170968d0c663c5a40d34b8e336c1c7be3c1ff13.zip FreeBSD-src-1170968d0c663c5a40d34b8e336c1c7be3c1ff13.tar.gz |
Fix the unaligned access problems that some people saw on alpha
by using a __packed keyword for the fxp_rfa structure. The Intel
guys who designed this structure with unaligned fields deserve
to be shot.
Tested by: kris
Approved by: re@ (jhb)
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r-- | sys/dev/fxp/if_fxpreg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxpreg.h b/sys/dev/fxp/if_fxpreg.h index ab3d2d0..be06c25 100644 --- a/sys/dev/fxp/if_fxpreg.h +++ b/sys/dev/fxp/if_fxpreg.h @@ -362,7 +362,7 @@ struct fxp_rfa { u_int8_t rfax_csum_sts; u_int8_t rfax_zerocopy_sts; u_int8_t rfax_pad[8]; -}; +} __packed; #define FXP_RFAX_LEN 16 #define FXP_RFA_STATUS_RCOL 0x0001 /* receive collision */ |