mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix Sparc32 nographic mode
git-svn-id: svn://coreboot.org/openbios/openbios-devel@412 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -684,6 +684,7 @@ ob_nvram_init(uint64_t base, uint64_t offset)
|
||||
ohwcfg_v3_t *header;
|
||||
char buf[256];
|
||||
uint32_t temp;
|
||||
phandle_t chosen;
|
||||
|
||||
ob_new_obio_device("eeprom", NULL);
|
||||
|
||||
@@ -917,6 +918,7 @@ ob_nvram_init(uint64_t base, uint64_t offset)
|
||||
|
||||
push_str("/");
|
||||
fword("find-device");
|
||||
|
||||
push_str(stdin);
|
||||
fword("encode-string");
|
||||
push_str("stdin-path");
|
||||
@@ -927,6 +929,27 @@ ob_nvram_init(uint64_t base, uint64_t offset)
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user