rename lock

This commit is contained in:
Eggert Jung
2025-05-13 16:49:28 +02:00
parent 2421136335
commit a415260776
3 changed files with 12 additions and 12 deletions

View File

@@ -70,16 +70,16 @@ enum PAGE_FAULT_ERROR {
}
extern TextStream kout;
extern Ticketlock ticketlock;
extern Ticketlock koutlock;
void handle_keyboard() {
ticketlock.lock();
Key key = Key();
if (PS2Controller::fetch(key)) {
kout << key.ascii() << endl << flush ;
koutlock.lock();
kout << key.ascii() << flush ;
koutlock.unlock();
}
ticketlock.unlock();
LAPIC::endOfInterrupt();
}