summaryrefslogtreecommitdiff
path: root/sys/include/dev/cons/consvar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include/dev/cons/consvar.h')
-rw-r--r--sys/include/dev/cons/consvar.h2
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;