Have bootloader enable bright backgrounds for vga text mode

This commit is contained in:
K. Lange 2018-03-15 11:16:41 +09:00 committed by Kevin Lange
parent eef3b0c610
commit f3342d1b2f

View File

@ -309,6 +309,12 @@ int kmain() {
outportb(0x3D4, 15);
outportb(0x3D5, 0xFF);
inportb(0x3DA);
outportb(0x3C0, 0x30);
char b = inportb(0x3C1);
b &= ~8;
outportb(0x3c0, b);
do {
clear_();
attr = 0x1f;