Author: blueswirl Date: 2009-01-17 16:37:30 +0100 (Sat, 17 Jan 2009) New Revision: 414
Modified: openbios-devel/arch/sparc64/init.fs openbios-devel/arch/sparc64/openbios.c Log: Set up console input and output variables correctly
Modified: openbios-devel/arch/sparc64/init.fs =================================================================== --- openbios-devel/arch/sparc64/init.fs 2009-01-17 10:15:13 UTC (rev 413) +++ openbios-devel/arch/sparc64/init.fs 2009-01-17 15:37:30 UTC (rev 414) @@ -38,15 +38,9 @@ \ use the tty interface if available : activate-tty-interface " /packages/terminal-emulator" find-dev if drop - " keyboard" " input-device" $setenv - " screen" " output-device" $setenv then ;
-:noname - " keyboard" input -; CONSOLE-IN-initializer - device-end
: rmap@ ( virt -- rmentry )
Modified: openbios-devel/arch/sparc64/openbios.c =================================================================== --- openbios-devel/arch/sparc64/openbios.c 2009-01-17 10:15:13 UTC (rev 413) +++ openbios-devel/arch/sparc64/openbios.c 2009-01-17 15:37:30 UTC (rev 414) @@ -433,6 +433,7 @@ stdin_path = "/pci/pci/pci/ebus/kb_ps2"; stdout_path = "/pci/pci/pci/QEMU,VGA"; } + push_str(stdin_path); fword("open-dev"); fword("encode-int"); @@ -444,6 +445,20 @@ fword("encode-int"); push_str("stdout"); fword("property"); + + push_str(stdin_path); + push_str("input-device"); + fword("$setenv"); + + push_str(stdout_path); + push_str("output-device"); + fword("$setenv"); + + push_str(stdin_path); + fword("input"); + + push_str(stdout_path); + fword("output"); }
void arch_nvram_put(char *data)