Implemented SmartCriticalSection

This commit is contained in:
Alex
2022-10-21 03:49:12 +03:00
parent 2f7b871aa0
commit 5d41d36bd8
9 changed files with 59 additions and 30 deletions

View File

@ -12,7 +12,7 @@
#include <cargs.h>
#include <io.h>
NEWLOCK(KernelLock);
NewLock(KernelLock);
BootInfo *bInfo = nullptr;
Video::Display *Display = nullptr;
@ -29,7 +29,7 @@ extern "C" void putchar(char c) { Display->Print(c, 0); }
EXTERNC void KPrint(const char *Format, ...)
{
SMARTLOCK(KernelLock);
SmartLock(KernelLock);
Time tm = ReadClock();
printf_("\eCCCCCC[\e00AEFF%02ld:%02ld:%02ld\eCCCCCC] ", tm.Hour, tm.Minute, tm.Second);
va_list args;