Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev instance-to-path works on instances not...



details:   https://anonhg.NetBSD.org/src/rev/8845ca45e2d6
branches:  trunk
changeset: 514386:8845ca45e2d6
user:      eeh <eeh%NetBSD.org@localhost>
date:      Fri Aug 31 17:10:54 2001 +0000

description:
instance-to-path works on instances not nodes.

diffstat:

 sys/arch/sparc64/dev/consinit.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r d381a6112bf3 -r 8845ca45e2d6 sys/arch/sparc64/dev/consinit.c
--- a/sys/arch/sparc64/dev/consinit.c   Fri Aug 31 16:47:41 2001 +0000
+++ b/sys/arch/sparc64/dev/consinit.c   Fri Aug 31 17:10:54 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: consinit.c,v 1.10 2001/08/28 14:51:28 eeh Exp $        */
+/*     $NetBSD: consinit.c,v 1.11 2001/08/31 17:10:54 eeh Exp $        */
 
 /*-
  * Copyright (c) 1999 Eduardo E. Horvath
@@ -195,6 +195,7 @@
        
        DBPRINT(("setting up stdin\r\n"));
        chosen = OF_finddevice("/chosen");
+       DBPRINT(("chosen = %x, stdin @ %p\r\n", chosen, &stdin));
        OF_getprop(chosen, "stdin",  &stdin, sizeof(stdin));
        DBPRINT(("stdin instance = %x\r\n", stdin));
        
@@ -202,6 +203,7 @@
                printf("WARNING: no PROM stdin\n");
        } 
                
+       DBPRINT(("stdin node = %x\r\n", stdinnode));
        DBPRINT(("setting up stdout\r\n"));
        OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
        
@@ -211,6 +213,7 @@
                printf("WARNING: no PROM stdout\n");
        
        DBPRINT(("stdout package = %x\r\n", fbnode));
+       DBPRINT(("buffer @ %p\r\n", buffer));
        
        if (stdinnode && (OF_getproplen(stdinnode,"keyboard") >= 0)) {
 #if NKBD > 0           
@@ -218,7 +221,7 @@
 #endif
                consname = "keyboard/display";
        } else if (fbnode && 
-               (OF_instance_to_path(stdinnode, buffer, sizeof(buffer)) >= 0)) {
+               (OF_instance_to_path(stdin, buffer, sizeof(buffer)) >= 0)) {
                consname = buffer;
        }
        printf("console is %s\n", consname);



Home | Main Index | Thread Index | Old Index