Date: Wed, 17 Sep 2008 18:40:21 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 149946 for review Message-ID: <200809171840.m8HIeLGq028756@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=149946 Change 149946 by sam@sam_ebb on 2008/09/17 18:39:33 possible fix for amd64 Affected files ... .. //depot/projects/vap/sys/dev/ath/if_athvar.h#29 edit Differences ... ==== //depot/projects/vap/sys/dev/ath/if_athvar.h#29 (text+ko) ==== @@ -504,8 +504,13 @@ (ath_hal_getcapability(_ah, HAL_CAP_CIPHER, _cipher, NULL) == HAL_OK) #define ath_hal_getregdomain(_ah, _prd) \ (ath_hal_getcapability(_ah, HAL_CAP_REG_DMN, 0, (_prd)) == HAL_OK) +#if defined(__LP64__) #define ath_hal_setregdomain(_ah, _rd) \ + (*(uint16_t *)(((uint8_t *)&(_ah)[1]) + 176) = (_rd)) +#else +#define ath_hal_setregdomain(_ah, _rd) \ (*(uint16_t *)(((uint8_t *)&(_ah)[1]) + 128) = (_rd)) +#endif #define ath_hal_getcountrycode(_ah, _pcc) \ (*(_pcc) = (_ah)->ah_countryCode) #define ath_hal_gettkipmic(_ah) \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809171840.m8HIeLGq028756>