Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Fix DVMA base address calculations.
details: https://anonhg.NetBSD.org/src/rev/03986ac1211b
branches: trunk
changeset: 487491:03986ac1211b
user: eeh <eeh%NetBSD.org@localhost>
date: Thu Jun 08 15:23:44 2000 +0000
description:
Fix DVMA base address calculations.
diffstat:
sys/arch/sparc64/dev/iommureg.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 27af65e27d12 -r 03986ac1211b sys/arch/sparc64/dev/iommureg.h
--- a/sys/arch/sparc64/dev/iommureg.h Thu Jun 08 14:45:24 2000 +0000
+++ b/sys/arch/sparc64/dev/iommureg.h Thu Jun 08 15:23:44 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iommureg.h,v 1.3 1999/06/04 13:48:48 mrg Exp $ */
+/* $NetBSD: iommureg.h,v 1.4 2000/06/08 15:23:44 eeh Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -97,8 +97,8 @@
#define IOTTE_C 0x0000000000000010LL /* Accesses to cacheable space */
#define IOTTE_W 0x0000000000000002LL /* Writeable */
-#define IOTSB_VEND 0xffffe000
-#define IOTSB_VSTART(sz) (u_int)(IOTSB_VEND << (PGSHIFT + (sz)))
+#define IOTSB_VEND (0xffffffffffffffffLL<<PGSHIFT)
+#define IOTSB_VSTART(sz) (u_int)(IOTSB_VEND << ((sz)+10))
#define MAKEIOTTE(pa,w,c,s) (((pa)&IOTTE_PAMASK)|((w)?IOTTE_W:0)|((c)?IOTTE_C:0)|((s)?IOTTE_STREAM:0)|(IOTTE_V|IOTTE_8K))
#if 0
Home |
Main Index |
Thread Index |
Old Index