Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sgimips/sgimips attach zs console on IP12



details:   https://anonhg.NetBSD.org/src/rev/ef69580b4cf7
branches:  trunk
changeset: 565504:ef69580b4cf7
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Apr 10 20:03:11 2004 +0000

description:
attach zs console on IP12

from Steve Rumble

diffstat:

 sys/arch/sgimips/sgimips/console.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r d11f668e5679 -r ef69580b4cf7 sys/arch/sgimips/sgimips/console.c
--- a/sys/arch/sgimips/sgimips/console.c        Sat Apr 10 20:00:29 2004 +0000
+++ b/sys/arch/sgimips/sgimips/console.c        Sat Apr 10 20:03:11 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: console.c,v 1.23 2004/04/08 14:45:13 pooka Exp $       */
+/*     $NetBSD: console.c,v 1.24 2004/04/10 20:03:11 pooka Exp $       */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: console.c,v 1.23 2004/04/08 14:45:13 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: console.c,v 1.24 2004/04/10 20:03:11 pooka Exp $");
 
 #include "opt_kgdb.h"
 
@@ -102,6 +102,7 @@
                            KBCMDP, PCKBC_KBD_SLOT);
                }
 #endif
+       case MACH_SGI_IP12:
 #if (NZSC > 0)
                if ((strlen(consdev) == 9) &&
                    (!strncmp(consdev, "serial", 6)) &&
@@ -148,8 +149,12 @@
 # endif        /* (NCOM > 0) */
 
 # if (NZSC > 0)
-       if (mach_type == MACH_SGI_IP20 || mach_type == MACH_SGI_IP22)
+       switch(mach_type) {
+       case MACH_SGI_IP12:
+       case MACH_SGI_IP20:
+       case MACH_SGI_IP22:
                zs_kgdb_init();                 /* XXX */
+       }
 # endif
 }
 #endif /* KGDB */



Home | Main Index | Thread Index | Old Index