Kernel: Replace HPET CriticalScope with SpinLock

This commit is contained in:
2024-02-28 23:06:48 +02:00
parent 18253b6966
commit 682de62c57
2 changed files with 17 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <kernel/InterruptController.h>
#include <kernel/Lock/SpinLock.h>
#include <kernel/Timer/Timer.h>
namespace Kernel
@@ -30,6 +31,8 @@ namespace Kernel
uint64_t read_main_counter() const;
private:
mutable SpinLock m_lock;
bool m_is_64bit { false };
uint64_t m_last_ticks { 0 };