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)
This commit is contained in:
parent
014ed75b27
commit
72490791a8
@ -362,7 +362,7 @@ struct fxp_rfa {
|
|||||||
u_int8_t rfax_csum_sts;
|
u_int8_t rfax_csum_sts;
|
||||||
u_int8_t rfax_zerocopy_sts;
|
u_int8_t rfax_zerocopy_sts;
|
||||||
u_int8_t rfax_pad[8];
|
u_int8_t rfax_pad[8];
|
||||||
};
|
} __packed;
|
||||||
#define FXP_RFAX_LEN 16
|
#define FXP_RFAX_LEN 16
|
||||||
|
|
||||||
#define FXP_RFA_STATUS_RCOL 0x0001 /* receive collision */
|
#define FXP_RFA_STATUS_RCOL 0x0001 /* receive collision */
|
||||||
|
Loading…
Reference in New Issue
Block a user