Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/vax PC_ICR doesn't exist on the 4000/VLC and tr...



details:   https://anonhg.NetBSD.org/src/rev/a6271a935325
branches:  trunk
changeset: 485075:a6271a935325
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Tue Apr 18 16:25:59 2000 +0000

description:
PC_ICR doesn't exist on the 4000/VLC and trying to read it apparently
causes problems when the cache is enabled.  Don't access it if boardtype
is VAX_BTYP_48.

diffstat:

 sys/arch/vax/vax/clock.c |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 2ae5bab463da -r a6271a935325 sys/arch/vax/vax/clock.c
--- a/sys/arch/vax/vax/clock.c  Tue Apr 18 16:23:42 2000 +0000
+++ b/sys/arch/vax/vax/clock.c  Tue Apr 18 16:25:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.32 2000/02/29 17:13:27 matt Exp $   */
+/*     $NetBSD: clock.c,v 1.33 2000/04/18 16:25:59 mhitch Exp $         */
 /*
  * Copyright (c) 1995 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -83,6 +83,17 @@
                break;
                }
 #endif
+#if VAX48
+       case VAX_BTYP_48: {
+               /*
+                * PR_ICR doesn't exist.  We could use the vc_diagtimu
+                * counter, saving the value on the timer interrupt and
+                * subtracting that from the current value.
+                */
+               i = 0;
+               break;
+               }
+#endif
        default:
                i = mfpr(PR_ICR);
                break;



Home | Main Index | Thread Index | Old Index