diff options
| author | tsutsui <tsutsui@NetBSD.org> | 1999-12-18 07:57:03 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 1999-12-18 07:57:03 +0000 |
| commit | 7374a44f77041b7423da8e06f48d304d6acf05fe (patch) | |
| tree | a88ccbbe2c29f0901afa51d9cc42915f4a5e802c /sys/dev | |
| parent | 4d08b56ebdfcc372a4a8c49121a7cb36ec911cc3 (diff) | |
Use bswap32() as SCR_BO() macro to avoid unexpected side effects.
SCR_BO(*src++) caused some trouble.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/ncrreg.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/ncrreg.h b/sys/dev/pci/ncrreg.h index 2865ce751f5..bc04d579bbc 100644 --- a/sys/dev/pci/ncrreg.h +++ b/sys/dev/pci/ncrreg.h @@ -1,4 +1,4 @@ -/* $NetBSD: ncrreg.h,v 1.15 1999/12/05 18:25:19 thorpej Exp $ */ +/* $NetBSD: ncrreg.h,v 1.16 1999/12/18 07:57:03 tsutsui Exp $ */ /************************************************************************** ** @@ -294,8 +294,7 @@ struct ncr_reg { typedef U_INT32 ncrcmd; #if BYTE_ORDER == BIG_ENDIAN -#define SCR_BO(x) (((x) >> 24) | (((x) >> 8) & 0xff00) | \ - ((x) << 24) | (((x) & 0xff00) << 8)) +#define SCR_BO(x) bswap32(x) #else #define SCR_BO(x) (x) #endif |
