Fixed kbd (buffer flush)

This commit is contained in:
2026-03-08 09:54:45 +01:00
parent 77d9df6f48
commit 5e9c582833
5 changed files with 23 additions and 15 deletions

View File

@@ -54,6 +54,7 @@ static int is_transmit_empty()
// Serial kernel putchar
void skputc(char c)
{
// TODO: Spinlock here (serial access)
while (!is_transmit_empty()); // wait for free spot
outb(PORT, c);
}