yaboot/yaboot-1.3.13-pegasos-seria...

15 lines
507 B
Diff

--- yaboot-1.3.13/second/prom.c~ 2005-08-10 14:53:10.000000000 +0100
+++ yaboot-1.3.13/second/prom.c 2005-08-10 15:07:16.000000000 +0100
@@ -368,10 +368,8 @@ prom_getchar ()
char c[4];
int a;
- while ((a = (int)call_prom ("read", 3, 1, prom_stdin, c, 4)) == 0)
+ while ((a = (int)call_prom ("read", 3, 1, prom_stdin, c, 4)) <= 0)
;
- if (a == -1)
- prom_abort ("EOF on console\n");
if (a == 3 && c[0] == '\e' && c[1] == '[')
return 0x100 | c[2];
return c[0];