[OpenBIOS] r412 - in openbios-devel: arch/sparc32 drivers

svn at openbios.org svn at openbios.org
Sat Jan 17 10:55:10 CET 2009


Author: blueswirl
Date: 2009-01-17 10:55:09 +0100 (Sat, 17 Jan 2009)
New Revision: 412

Modified:
   openbios-devel/arch/sparc32/init.fs
   openbios-devel/drivers/obio.c
Log:
Fix Sparc32 nographic mode

Modified: openbios-devel/arch/sparc32/init.fs
===================================================================
--- openbios-devel/arch/sparc32/init.fs	2009-01-15 12:55:31 UTC (rev 411)
+++ openbios-devel/arch/sparc32/init.fs	2009-01-17 09:55:09 UTC (rev 412)
@@ -33,23 +33,8 @@
 :noname
   " memory" " /memory" preopen
   " mmu" " /cpus/@0" preopen
-  " stdout" " /builtin/console" preopen
-  " stdin" " /builtin/console" preopen
-
 ; SYSTEM-initializer
 
-\ use the tty interface if available
-:noname
-  " /builtin/console" find-dev if drop
-    " /builtin/console" " input-device" $setenv
-    " /builtin/console" " output-device" $setenv
-  then
-; SYSTEM-initializer
-
-:noname
-  " keyboard" input
-; CONSOLE-IN-initializer
-
 device-end
 
 : rmap@    ( virt -- rmentry )

Modified: openbios-devel/drivers/obio.c
===================================================================
--- openbios-devel/drivers/obio.c	2009-01-15 12:55:31 UTC (rev 411)
+++ openbios-devel/drivers/obio.c	2009-01-17 09:55:09 UTC (rev 412)
@@ -684,6 +684,7 @@
     ohwcfg_v3_t *header;
     char buf[256];
     uint32_t temp;
+    phandle_t chosen;
 
     ob_new_obio_device("eeprom", NULL);
 
@@ -917,6 +918,7 @@
 
     push_str("/");
     fword("find-device");
+
     push_str(stdin);
     fword("encode-string");
     push_str("stdin-path");
@@ -927,6 +929,27 @@
     push_str("stdout-path");
     fword("property");
 
+    chosen = find_dev("/chosen");
+    push_str(stdin);
+    fword("open-dev");
+    set_int_property(chosen, "stdin", POP());
+
+    chosen = find_dev("/chosen");
+    push_str(stdout);
+    fword("open-dev");
+    set_int_property(chosen, "stdout", POP());
+
+    push_str(stdin);
+    push_str("input-device");
+    fword("$setenv");
+
+    push_str(stdout);
+    push_str("output-device");
+    fword("$setenv");
+
+    push_str(stdin);
+    fword("input");
+
     obp_stdin_path = stdin;
     obp_stdout_path = stdout;
 }




More information about the OpenBIOS mailing list