kernel - add spinlock to syscons console write path
commit82d1ed25dd0260190823a69517b17901d529b14a
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 Jan 2010 01:23:53 +0000 (17 17:23 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 Jan 2010 01:23:53 +0000 (17 17:23 -0800)
treeb5a3424ceb9a0f780d6cbec4375086dd924e8e8c
parent29758f2e39e0f902c9fd1811252140ad1d5e9370
kernel - add spinlock to syscons console write path

* Add a spinlock in the console write path which is shared with
  general console writes (CONS_LOCK is only used for kernel console
  writes).

* Fixes MP races between kprintf() and general console writes which
  can cause sc->videoio_in_progress to get out of sync, causing
  vga consoles to stop generating output.
sys/dev/misc/syscons/syscons.c
sys/dev/misc/syscons/syscons.h