QoL improvements

This commit is contained in:
Alex 2023-04-23 07:51:05 +03:00
parent cd0a470e1d
commit efc16409a6
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 5 additions and 9 deletions

View File

@ -247,7 +247,7 @@ EXTERNC void KPrint(const char *Format, ...)
vprintf(Format, args); vprintf(Format, args);
va_end(args); va_end(args);
putchar('\n'); printf("\eCCCCCC\n");
if (!Config.BootAnimation && Display) if (!Config.BootAnimation && Display)
Display->SetBuffer(0); Display->SetBuffer(0);
} }
@ -255,17 +255,13 @@ EXTERNC void KPrint(const char *Format, ...)
EXTERNC NIF void Main(BootInfo *Info) EXTERNC NIF void Main(BootInfo *Info)
{ {
BootClock = Time::ReadClock(); BootClock = Time::ReadClock();
// bInfo = (BootInfo *)KernelAllocator.RequestPages(TO_PAGES(sizeof(BootInfo) + 1));
memcpy(&bInfo, Info, sizeof(BootInfo)); memcpy(&bInfo, Info, sizeof(BootInfo));
debug("BootInfo structure is at %p", bInfo); debug("BootInfo structure is at %p", bInfo);
Display = new Video::Display(bInfo.Framebuffer[0]); Display = new Video::Display(bInfo.Framebuffer[0]);
printf("\eFFFFFF%s - %s [\e058C19%s\eFFFFFF]\n", KERNEL_NAME, KERNEL_VERSION, GIT_COMMIT_SHORT); KPrint("%s - %s [\e058C19%s\eFFFFFF]", KERNEL_NAME, KERNEL_VERSION, GIT_COMMIT_SHORT);
/**************************************************************************************/ /**************************************************************************************/
KPrint("Time: \e8888FF%02d:%02d:%02d %02d/%02d/%02d UTC", KPrint("CPU: \e058C19%s \e8822AA%s \e8888FF%s", CPU::Hypervisor(), CPU::Vendor(), CPU::Name());
BootClock.Hour, BootClock.Minute, BootClock.Second,
BootClock.Day, BootClock.Month, BootClock.Year);
KPrint("CPU: \e8822AA%s \e8888FF%s (\e058C19%s\e8888FF)", CPU::Vendor(), CPU::Name(), CPU::Hypervisor());
KPrint("Initializing GDT and IDT"); KPrint("Initializing GDT and IDT");
Interrupts::Initialize(0); Interrupts::Initialize(0);

View File

@ -234,7 +234,7 @@ void BootLogoAnimationThread()
brightness -= 10; brightness -= 10;
Display->SetBrightness(brightness, 1); Display->SetBrightness(brightness, 1);
Display->SetBuffer(1); Display->SetBuffer(1);
TaskManager->Sleep(10); TaskManager->Sleep(5);
} }
} }
@ -291,7 +291,7 @@ void ExitLogoAnimationThread()
brightness -= 10; brightness -= 10;
Display->SetBrightness(brightness, 1); Display->SetBrightness(brightness, 1);
Display->SetBuffer(1); Display->SetBuffer(1);
TaskManager->Sleep(10); TaskManager->Sleep(5);
} }
} }