syscons - Set cons_unavail when blanking framebuffer screen from syscons.
authorImre Vadász <imre@vdsz.com>
Sat, 3 Dec 2016 20:13:03 +0000 (21:13 +0100)
committerImre Vadász <imre@vdsz.com>
Sun, 4 Dec 2016 23:35:04 +0000 (00:35 +0100)
commit43c88c9d711a1d08f93df21293aea381e9fd1681
treee3e6c8c760aa312c27b79c22f132cb10ef67ac75
parentf8b03d86bc34d0479786c445b9af192da3826fea
syscons - Set cons_unavail when blanking framebuffer screen from syscons.

* This makes us treat panics while the screen is blanked in KMS mode
  similar to panics while X is running. In both cases we have no
  possibility left to display the syscons console.

* This also sets the cons_unavail flag, when the KMS driver is unloaded
  and the framebuffer console becomes unusable, until a new framebuffer
  is registered for syscons (which will clear cons_unavail again).
sys/dev/misc/syscons/syscons.c
sys/dev/misc/syscons/syscons.h