From 05273de9c16b881f79e8bb00a6874df8ee9c826f Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 16 May 2025 23:18:16 -0400 Subject: kernel: cons: Add lock to console buffer Signed-off-by: Ian Moffett --- sys/include/dev/cons/consvar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/include') 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 #include +#include /* 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; -- cgit v1.2.3