serial echo

This commit is contained in:
2024-03-30 09:36:56 +01:00
parent 35f67a70f5
commit aa8438c48a

View File

@@ -20,7 +20,9 @@ void SerialTty::putstr(const char *str) {
}
static int read() {
if (!(inb(PORT + 5) & 1)) return -1;
return inb(PORT);
char r = inb(PORT);
write_serial(r);
return r;
}
void SerialTty::this_pooler() {