mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-11 23:39:17 +00:00
kernel: add aarch64 architecture support
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -48,6 +48,8 @@ namespace Time
|
||||
return mminq(&hpet->MainCounterValue);
|
||||
#elif defined(__i386__)
|
||||
return mminl(&hpet->MainCounterValue);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -57,6 +59,8 @@ namespace Time
|
||||
return mminq(&hpet->MainCounterValue) + (Target * ConvertUnit(Unit)) / clk;
|
||||
#elif defined(__i386__)
|
||||
return mminl(&hpet->MainCounterValue) + (Target * ConvertUnit(Unit)) / clk;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -69,6 +73,8 @@ namespace Time
|
||||
|
||||
Subtraction *= ConvertUnit(Units::Nanoseconds);
|
||||
return uint64_t(Subtraction / this->clk);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,8 @@ namespace Time
|
||||
while (this->GetCounter() < Target)
|
||||
CPU::Pause();
|
||||
return true;
|
||||
#elif defined(__aarch64__)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -40,6 +42,8 @@ namespace Time
|
||||
{
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
return CPU::Counter();
|
||||
#elif defined(__aarch64__)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -47,6 +51,8 @@ namespace Time
|
||||
{
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
return uint64_t((this->GetCounter() + (Target * ConvertUnit(Unit))) / this->clk);
|
||||
#elif defined(__aarch64__)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -54,6 +60,8 @@ namespace Time
|
||||
{
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
return uint64_t((this->GetCounter() - this->ClassCreationTime) / this->clk);
|
||||
#elif defined(__aarch64__)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user