Module Name:    src
Committed By:   tsutsui
Date:           Sat Dec 25 15:05:22 UTC 2010

Modified Files:
        src/sys/arch/hp300/include: cpu.h

Log Message:
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...


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/hp300/include/cpu.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp300/include/cpu.h
diff -u src/sys/arch/hp300/include/cpu.h:1.63 src/sys/arch/hp300/include/cpu.h:1.64
--- src/sys/arch/hp300/include/cpu.h:1.63	Wed Dec 22 02:42:27 2010
+++ src/sys/arch/hp300/include/cpu.h	Sat Dec 25 15:05:22 2010
@@ -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:

Reply via email to