Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/include Make sure MAXADDR is unsigned otherwi...
details: https://anonhg.NetBSD.org/src/rev/2ee268f3ef91
branches: trunk
changeset: 760059:2ee268f3ef91
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Dec 25 15:05:22 2010 +0000
description:
Make sure MAXADDR is unsigned otherwise it could be mangled in shift ops
and causes silent hang on bootstrap. Analyzed on HP9000/362 I get today,
but I'm not sure how 040 lkptpa code has worked on my HP382...
diffstat:
sys/arch/hp300/include/cpu.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 921faeb2689b -r 2ee268f3ef91 sys/arch/hp300/include/cpu.h
--- a/sys/arch/hp300/include/cpu.h Sat Dec 25 14:42:59 2010 +0000
+++ b/sys/arch/hp300/include/cpu.h Sat Dec 25 15:05:22 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.63 2010/12/22 02:42:27 matt Exp $ */
+/* $NetBSD: cpu.h,v 1.64 2010/12/25 15:05:22 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1990, 1993
@@ -194,7 +194,7 @@
#define INTIOTOP (0x00600000)
#define EXTIOBASE (0x00600000)
#define EXTIOTOP (0x20000000)
-#define MAXADDR (0 - NBPG)
+#define MAXADDR ((paddr_t)(0 - NBPG))
/*
* Internal IO space:
Home |
Main Index |
Thread Index |
Old Index