diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-16 23:18:16 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-16 23:18:16 -0400 |
commit | 05273de9c16b881f79e8bb00a6874df8ee9c826f (patch) | |
tree | 1175e5bf9fa338f89d23b5f452babeff9a0333d3 /sys/include/dev/cons/consvar.h | |
parent | 4ed5992035300a9f1b98f8cbca4b53f44043e054 (diff) |
kernel: cons: Add lock to console buffer
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/cons/consvar.h')
-rw-r--r-- | sys/include/dev/cons/consvar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/dev/cons/consvar.h b/sys/include/dev/cons/consvar.h index 483d5f1..253176b 100644 --- a/sys/include/dev/cons/consvar.h +++ b/sys/include/dev/cons/consvar.h @@ -32,6 +32,7 @@ #include <sys/types.h> #include <sys/param.h> +#include <sys/spinlock.h> /* Buffer types */ #define CONS_BUF_INPUT 0 @@ -62,6 +63,7 @@ struct cons_input { * keyboard input or console output. */ struct cons_buf { + struct spinlock lock; union { struct cons_input *ibuf; struct cons_char *obuf; |