From 138bc244f9b85affad47727affbd8694ea083cb3 Mon Sep 17 00:00:00 2001 From: Achilleas Anagnostopoulos Date: Sun, 26 Mar 2017 21:41:53 +0100 Subject: [PATCH] Add mutex to Vga console to satisfy console.Console --- kernel/driver/video/console/vga.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/driver/video/console/vga.go b/kernel/driver/video/console/vga.go index ca6e2d8..f562b8b 100644 --- a/kernel/driver/video/console/vga.go +++ b/kernel/driver/video/console/vga.go @@ -2,6 +2,7 @@ package console import ( "reflect" + "sync" "unsafe" ) @@ -15,6 +16,8 @@ const ( // allocator, each console will use its own framebuffer while the active console // will periodically sync its internal buffer with the physical screen buffer. type Vga struct { + sync.Mutex + width uint16 height uint16