mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Set up console input and output variables correctly
git-svn-id: svn://coreboot.org/openbios/openbios-devel@414 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -433,6 +433,7 @@ void arch_nvram_get(char *data)
|
||||
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 @@ void arch_nvram_get(char *data)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user