Make the openfirmware getchar entry point non-blocking. This catches up
with jhb's 2005/05/27 loader multiple-console change. Tested by: marius/sparc64, grehan/ofwppc
This commit is contained in:
parent
47252f4e65
commit
e45efebc97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176068
@ -97,10 +97,10 @@ ofw_cons_getchar()
|
||||
return l;
|
||||
}
|
||||
|
||||
while ((l = OF_read(stdin, &ch, 1)) != 1)
|
||||
if (l != -2 && l != 0)
|
||||
return -1;
|
||||
return ch;
|
||||
if (OF_read(stdin, &ch, 1) > 0)
|
||||
return (ch);
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user