Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/rmi RMIXL_FLASH_BAR_MASK_MAX is __BITS(34, 0)
details: https://anonhg.NetBSD.org/src/rev/ccf0af863add
branches: trunk
changeset: 763376:ccf0af863add
user: cliff <cliff%NetBSD.org@localhost>
date: Fri Mar 18 07:12:29 2011 +0000
description:
RMIXL_FLASH_BAR_MASK_MAX is __BITS(34,0)
so avoid using extent if that value overflows 'long'
diffstat:
sys/arch/mips/rmi/rmixl_iobus_space.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 93991d0869b3 -r ccf0af863add sys/arch/mips/rmi/rmixl_iobus_space.c
--- a/sys/arch/mips/rmi/rmixl_iobus_space.c Fri Mar 18 03:06:21 2011 +0000
+++ b/sys/arch/mips/rmi/rmixl_iobus_space.c Fri Mar 18 07:12:29 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rmixl_iobus_space.c,v 1.1 2011/03/18 01:04:09 cliff Exp $ */
+/* $NetBSD: rmixl_iobus_space.c,v 1.2 2011/03/18 07:12:29 cliff Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rmixl_iobus_space.c,v 1.1 2011/03/18 01:04:09 cliff Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rmixl_iobus_space.c,v 1.2 2011/03/18 07:12:29 cliff Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -50,7 +50,14 @@
#define CHIP_BIG_ENDIAN
#define CHIP_EX_MALLOC_SAFE(v) (((struct rmixl_config *)(v))->rc_mallocsafe)
+
+/*
+ * RMIXL_FLASH_BAR_MASK_MAX is __BITS(34,0)
+ * so avoid extent if that value overflows 'long'
+ */
+#ifdef _LP64
#define CHIP_EXTENT(v) (((struct rmixl_config *)(v))->rc_iobus_ex)
+#endif
/* MEM region 1 */
Home |
Main Index |
Thread Index |
Old Index