Move the lock in the keyboard buffer

Added comment to defs
This commit is contained in:
iDunnoDev
2023-01-14 00:40:23 +00:00
committed by iDunnoDev
parent f74cebc12d
commit 5b203d7f82
2 changed files with 4 additions and 2 deletions

View File

@ -743,9 +743,10 @@ void consoleintr(int (*getc)(void))
int doconsolehome = 0;
struct vconsole* inconsoleptr = getvalidprocessconsoleptr();
struct kbdbuffer* consolekbdbuffer = &currentconsole->keybuffer;
acquire(&cons.lock);
struct kbdbuffer* consolekbdbuffer = &currentconsole->keybuffer;
while ((c = getc()) >= 0)
{
switch (c)