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:
Blue Swirl
2009-12-30 10:54:52 +00:00
parent f5dbe735cd
commit 4d0214e2bf
2 changed files with 5 additions and 1 deletions

View File

@@ -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);
}