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 Simplify toggling the FTP bit on sun4m ...



details:   https://anonhg.NetBSD.org/src/rev/27fbf32ed92c
branches:  trunk
changeset: 480835:27fbf32ed92c
user:      pk <pk%NetBSD.org@localhost>
date:      Fri Jan 21 13:25:12 2000 +0000

description:
Simplify toggling the FTP bit on sun4m machines.

diffstat:

 sys/arch/sparc/sparc/auxreg.h |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 8722438d0ca8 -r 27fbf32ed92c sys/arch/sparc/sparc/auxreg.h
--- a/sys/arch/sparc/sparc/auxreg.h     Fri Jan 21 13:24:06 2000 +0000
+++ b/sys/arch/sparc/sparc/auxreg.h     Fri Jan 21 13:25:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auxreg.h,v 1.7 1997/05/17 17:52:52 pk Exp $ */
+/*     $NetBSD: auxreg.h,v 1.8 2000/01/21 13:25:12 pk Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -103,9 +103,8 @@
 
 #define FTC_FLIP       do {                                            \
        if (CPU_ISSUN4M) {                                              \
-               auxio_regval |= AUXIO4M_FTC;                            \
-               *AUXIO4M_REG = auxio_regval;                            \
-               *AUXIO4M_REG = *AUXIO4M_REG | AUXIO4M_MB1 | AUXIO4M_FTC;\
+               /* AUXIO4M_FTC bit is auto-clear */                     \
+               *AUXIO4M_REG = auxio_regval | AUXIO4M_FTC;              \
        } else {                                                        \
                auxio_regval |= AUXIO4C_FTC;                            \
                *AUXIO4C_REG = auxio_regval;                            \



Home | Main Index | Thread Index | Old Index