Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/rmind-uvmplock]: src/sys/arch/hp300/hp300 Fix hp300, missed in previous.
details: https://anonhg.NetBSD.org/src/rev/6d2bff85776f
branches: rmind-uvmplock
changeset: 753052:6d2bff85776f
user: rmind <rmind%NetBSD.org@localhost>
date: Sun Apr 25 20:20:57 2010 +0000
description:
Fix hp300, missed in previous.
diffstat:
sys/arch/hp300/hp300/machdep.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 0d68daba4ade -r 6d2bff85776f sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c Sun Apr 25 19:38:59 2010 +0000
+++ b/sys/arch/hp300/hp300/machdep.c Sun Apr 25 20:20:57 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.211.2.2 2010/04/25 15:27:36 rmind Exp $ */
+/* $NetBSD: machdep.c,v 1.211.2.3 2010/04/25 20:20:57 rmind Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.211.2.2 2010/04/25 15:27:36 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.211.2.3 2010/04/25 20:20:57 rmind Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@@ -1295,6 +1295,7 @@
* to corruption of device registers.
*/
*handled = false;
- return (ISIIOVA(ptr) || (ptr >= extiobase &&
- ptr < (extiobase + (EIOMAPSIZE * PAGE_SIZE)))) ? EFAULT : 0;
+ return (ISIIOVA(ptr) || ((uint8_t *)ptr >= extiobase &&
+ (uint8_t *)ptr < extiobase + (EIOMAPSIZE * PAGE_SIZE)))
+ ? EFAULT : 0;
}
Home |
Main Index |
Thread Index |
Old Index