mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Sparc64: fix Linux error about inconsistent console also for serial console
Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@654 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -386,7 +386,7 @@ void arch_nvram_get(char *data)
|
||||
fword("property");
|
||||
|
||||
if (fw_cfg_read_i16(FW_CFG_NOGRAPHIC)) {
|
||||
stdin_path = stdout_path = "/pci/pci/pci/ebus/su";
|
||||
stdin_path = stdout_path = "ttya";
|
||||
} else {
|
||||
stdin_path = "/pci/pci/pci/ebus/kb_ps2";
|
||||
stdout_path = "/pci/pci/pci/QEMU,VGA";
|
||||
|
||||
@@ -171,6 +171,7 @@ void
|
||||
ob_pc_serial_init(const char *path, const char *dev_name, uint64_t base,
|
||||
uint64_t offset, int intr)
|
||||
{
|
||||
phandle_t aliases;
|
||||
char nodebuff[128];
|
||||
|
||||
snprintf(nodebuff, sizeof(nodebuff), "%s/%s", path, dev_name);
|
||||
@@ -192,4 +193,7 @@ ob_pc_serial_init(const char *path, const char *dev_name, uint64_t base,
|
||||
fword("encode+");
|
||||
push_str("reg");
|
||||
fword("property");
|
||||
|
||||
aliases = find_dev("/aliases");
|
||||
set_property(aliases, "ttya", nodebuff, strlen(nodebuff) + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user