Move the lock in the keyboard buffer
Added comment to defs
This commit is contained in:
@ -743,9 +743,10 @@ void consoleintr(int (*getc)(void))
|
|||||||
int doconsolehome = 0;
|
int doconsolehome = 0;
|
||||||
|
|
||||||
struct vconsole* inconsoleptr = getvalidprocessconsoleptr();
|
struct vconsole* inconsoleptr = getvalidprocessconsoleptr();
|
||||||
struct kbdbuffer* consolekbdbuffer = ¤tconsole->keybuffer;
|
|
||||||
|
|
||||||
acquire(&cons.lock);
|
acquire(&cons.lock);
|
||||||
|
struct kbdbuffer* consolekbdbuffer = ¤tconsole->keybuffer;
|
||||||
|
|
||||||
while ((c = getc()) >= 0)
|
while ((c = getc()) >= 0)
|
||||||
{
|
{
|
||||||
switch (c)
|
switch (c)
|
||||||
|
3
defs.h
3
defs.h
@ -37,8 +37,9 @@ void clearscreen(int);
|
|||||||
struct vconsole* getbaseconsoleptr(void);
|
struct vconsole* getbaseconsoleptr(void);
|
||||||
// Function to provide cprintf functionality but saved into a char array
|
// Function to provide cprintf functionality but saved into a char array
|
||||||
void sprintf(char*, char*, ...);
|
void sprintf(char*, char*, ...);
|
||||||
|
// Function to set a consoles title
|
||||||
void setconsoleproctitle(struct vconsole* consoleptr, char* newtitle);
|
void setconsoleproctitle(struct vconsole* consoleptr, char* newtitle);
|
||||||
//void drawtitle();
|
// Function to get a consoles index
|
||||||
int getconsoleindex(struct vconsole* consolein);
|
int getconsoleindex(struct vconsole* consolein);
|
||||||
|
|
||||||
// exec.c
|
// exec.c
|
||||||
|
Reference in New Issue
Block a user