PERFORCE change 149946 for review

Sam Leffler sam at FreeBSD.org
Wed Sep 17 18:40:22 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=149946

Change 149946 by sam at 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) \


More information about the p4-projects mailing list