Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Fix for 64-bit event counters. Fixes P...



details:   https://anonhg.NetBSD.org/src/rev/bfa9f99c93a0
branches:  trunk
changeset: 532719:bfa9f99c93a0
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Thu Jun 13 21:04:37 2002 +0000

description:
Fix for 64-bit event counters.  Fixes PR17207.

diffstat:

 sys/arch/sparc/sparc/amd7930intr.s |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 2f712f6e0999 -r bfa9f99c93a0 sys/arch/sparc/sparc/amd7930intr.s
--- a/sys/arch/sparc/sparc/amd7930intr.s        Thu Jun 13 21:02:45 2002 +0000
+++ b/sys/arch/sparc/sparc/amd7930intr.s        Thu Jun 13 21:04:37 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amd7930intr.s,v 1.17 2000/05/08 03:09:54 mycroft Exp $ */
+/*     $NetBSD: amd7930intr.s,v 1.18 2002/06/13 21:04:37 gmcgarry Exp $        */
 /*
  * Copyright (c) 1995 Rolf Grossmann.
  * Copyright (c) 1992, 1993
@@ -107,9 +107,10 @@
        sethi   %hi(_C_LABEL(auiop)), %l7
        ld      [%l7 + %lo(_C_LABEL(auiop))], %l7
 
-       ld      [%l7 + AU_EVCNT], %l6
-       inc     %l6
-       st      %l6, [%l7 + AU_EVCNT]
+       ldd     [%l7 + AU_EVCNT], %l4
+       inccc   %l5
+       addx    %l4, 0, %l4
+       std     %l4, [%l7 + AU_EVCNT]
 
        ld      [%l7 + AU_BH], R_amd
        ldub    [R_amd + AM7930_DREG_IR], %g0   ! clear interrupt



Home | Main Index | Thread Index | Old Index