Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Make this work again after the last chang...



details:   https://anonhg.NetBSD.org/src/rev/dfa641f637a2
branches:  trunk
changeset: 484922:dfa641f637a2
user:      is <is%NetBSD.org@localhost>
date:      Fri Apr 14 21:56:22 2000 +0000

description:
Make this work again after the last changes...
remember, folks, potential Amiga console devices run autoconfiguration
_twice_.

diffstat:

 sys/arch/amiga/dev/ser.c |  16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 492ec2b11209 -r dfa641f637a2 sys/arch/amiga/dev/ser.c
--- a/sys/arch/amiga/dev/ser.c  Fri Apr 14 21:46:11 2000 +0000
+++ b/sys/arch/amiga/dev/ser.c  Fri Apr 14 21:56:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ser.c,v 1.51 2000/04/07 19:47:18 aymeric Exp $ */
+/*     $NetBSD: ser.c,v 1.52 2000/04/14 21:56:22 is Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -182,11 +182,21 @@
        void *auxp;
 {
        static int ser_matched = 0;
+       static int ser_matched_real = 0;
 
        /* Allow only once instance. */
-       if (matchname("ser", (char *)auxp) == 0 || ser_matched)
+       if (matchname("ser", (char *)auxp) == 0)
                return(0);
-       if (serconsole != 0 && amiga_realconfig == 0)
+
+       if (amiga_realconfig) {
+               if (ser_matched_real)
+                       return(0);
+               ser_matched_real = 1;
+       }
+
+       if (serconsole != 0)
+               return(0);
+       if (ser_matched != 0)
                return(0);
 
        ser_matched = 1;



Home | Main Index | Thread Index | Old Index