vt: vtattr_notify missing cases
authorAlan Cox <alan@linux.intel.com>
Thu, 19 Apr 2018 22:45:00 +0000 (23:45 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 19 Apr 2018 22:45:00 +0000 (23:45 +0100)
Set sensible colours on startup and notify the platform code so it can set up
the correct properties.

Also do a notify on a vt switch as the attributes are per vt.

Kernel/vt.c

index 90d3dca..d9c6916 100644 (file)
@@ -75,7 +75,7 @@
 
 static uint8_t vtmode;
 uint8_t vtattr;
-uint8_t vtink;
+uint8_t vtink = 7;
 uint8_t vtpaper;
 static signed char cursorx;
 static signed char cursory = VT_INITIAL_LINE;
@@ -343,6 +343,7 @@ int vt_inproc(uint8_t minor, unsigned char c)
 void vtinit(void)
 {
        vtmode = 0;
+       vtattr_notify();
        clear_lines(0, VT_BOTTOM + 1);
        cursor_on(0, 0);
 }
@@ -365,6 +366,7 @@ void vt_load(struct vt_switch *vt)
        cursorx = vt->cursorx;
        cursory = vt->cursory;
        ncursory = vt->ncursory;
+       vtattr_notify();
 }
 #endif