Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Use __BIT() for some masks to fix the s...
details: https://anonhg.NetBSD.org/src/rev/ab72d8fdd26e
branches: trunk
changeset: 341880:ab72d8fdd26e
user: martin <martin%NetBSD.org@localhost>
date: Fri Nov 27 09:34:36 2015 +0000
description:
Use __BIT() for some masks to fix the sparc build.
No binary changes.
diffstat:
sys/arch/sparc64/dev/schizo.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (56 lines):
diff -r c900da395293 -r ab72d8fdd26e sys/arch/sparc64/dev/schizo.c
--- a/sys/arch/sparc64/dev/schizo.c Fri Nov 27 08:48:24 2015 +0000
+++ b/sys/arch/sparc64/dev/schizo.c Fri Nov 27 09:34:36 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: schizo.c,v 1.34 2015/11/23 21:40:14 jdc Exp $ */
+/* $NetBSD: schizo.c,v 1.35 2015/11/27 09:34:36 martin Exp $ */
/* $OpenBSD: schizo.c,v 1.55 2008/08/18 20:29:37 brad Exp $ */
/*
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: schizo.c,v 1.34 2015/11/23 21:40:14 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: schizo.c,v 1.35 2015/11/27 09:34:36 martin Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -329,28 +329,28 @@
(void **)&ino_bitmaps)) {
/* No property - set defaults (double map UE, CE, SERR). */
if (pbm->sp_bus_a)
- ino_bitmap = 1UL << SCZ_PCIERR_A_INO;
+ ino_bitmap = __BIT(SCZ_PCIERR_A_INO);
else
- ino_bitmap = 1UL << SCZ_PCIERR_B_INO;
- ino_bitmap |= (1UL << SCZ_UE_INO) | (1UL << SCZ_CE_INO) |
- (1UL << SCZ_SERR_INO);
+ ino_bitmap = __BIT(SCZ_PCIERR_B_INO);
+ ino_bitmap |= __BIT(SCZ_UE_INO) | __BIT(SCZ_CE_INO) |
+ __BIT(SCZ_SERR_INO);
} else
ino_bitmap = (uint64_t) ino_bitmaps[1] << 32 | ino_bitmaps[0];
DPRINTF(SDB_INTR, ("ino_bitmap=0x%016" PRIx64 "\n", ino_bitmap));
- if (ino_bitmap & (1UL << SCZ_PCIERR_A_INO))
+ if (ino_bitmap & __BIT(SCZ_PCIERR_A_INO))
schizo_set_intr(sc, pbm, PIL_HIGH, schizo_pci_error,
pbm, SCZ_PCIERR_A_INO, "pci_a");
- if (ino_bitmap & (1UL << SCZ_PCIERR_B_INO))
+ if (ino_bitmap & __BIT(SCZ_PCIERR_B_INO))
schizo_set_intr(sc, pbm, PIL_HIGH, schizo_pci_error,
pbm, SCZ_PCIERR_B_INO, "pci_b");
- if (ino_bitmap & (1UL << SCZ_UE_INO))
+ if (ino_bitmap & __BIT(SCZ_UE_INO))
schizo_set_intr(sc, pbm, PIL_HIGH, schizo_ue, sc, SCZ_UE_INO,
"ue");
- if (ino_bitmap & (1UL << SCZ_CE_INO))
+ if (ino_bitmap & __BIT(SCZ_CE_INO))
schizo_set_intr(sc, pbm, PIL_HIGH, schizo_ce, sc, SCZ_CE_INO,
"ce");
- if (ino_bitmap & (1UL << SCZ_SERR_INO))
+ if (ino_bitmap & __BIT(SCZ_SERR_INO))
schizo_set_intr(sc, pbm, PIL_HIGH, schizo_safari_error, sc,
SCZ_SERR_INO, "safari");
Home |
Main Index |
Thread Index |
Old Index