Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp700/include Add aliasing defines for PA2.0 cpus.
details: https://anonhg.NetBSD.org/src/rev/550cb60edb2c
branches: trunk
changeset: 752149:550cb60edb2c
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Feb 17 11:14:10 2010 +0000
description:
Add aliasing defines for PA2.0 cpus.
They will cause unnecessary non-equiv alias handling on PA1.x machines if
PA2.0 cpu support is compiled into the kernel. GENERIC currently doesn't
have this support enabled.
The performance hit of this needs testing.
diffstat:
sys/arch/hp700/include/cpu.h | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r cfcbbce119a0 -r 550cb60edb2c sys/arch/hp700/include/cpu.h
--- a/sys/arch/hp700/include/cpu.h Wed Feb 17 10:03:30 2010 +0000
+++ b/sys/arch/hp700/include/cpu.h Wed Feb 17 11:14:10 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.34 2009/06/03 21:08:51 skrll Exp $ */
+/* $NetBSD: cpu.h,v 1.35 2010/02/17 11:14:10 skrll Exp $ */
/* $OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $ */
@@ -152,10 +152,17 @@
* definitions of cpu-dependent requirements
* referenced in generic code
*/
-
+#if defined(HP8000_CPU) || defined(HP8200_CPU) || \
+ defined(HP8500_CPU) || defined(HP8600_CPU)
+#define HPPA_PGALIAS 0x00400000
+#define HPPA_PGAMASK 0xffc00000
+#define HPPA_PGAOFF 0x003fffff
+#else
#define HPPA_PGALIAS 0x00100000
#define HPPA_PGAMASK 0xfff00000
#define HPPA_PGAOFF 0x000fffff
+#endif
+
#define HPPA_SPAMASK 0xf0f0f000
#define HPPA_IOSPACE 0xf0000000
Home |
Main Index |
Thread Index |
Old Index