From 72490791a84b54191d9661027221725c33904c0b Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Mon, 12 May 2003 18:15:33 +0000 Subject: [PATCH] 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) --- sys/dev/fxp/if_fxpreg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/fxp/if_fxpreg.h b/sys/dev/fxp/if_fxpreg.h index ab3d2d0ca893..be06c250de43 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 */