1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

Kernel: Make PhysicalRegion.cpp compile on aarch64

This commit is contained in:
James Mintram 2022-04-02 23:47:47 +01:00 committed by Brian Gianforcaro
parent 0d7eee625f
commit 783a44b18e
3 changed files with 9 additions and 1 deletions

View file

@ -158,6 +158,11 @@ public:
return *g_total_processors.ptr();
}
ALWAYS_INLINE static u64 read_cpu_counter()
{
return read_tsc();
}
ALWAYS_INLINE static void pause()
{
asm volatile("pause");