Added Counter() function to CPU

This commit is contained in:
Alex
2022-11-01 01:54:15 +02:00
parent f3cfc623d8
commit 99606bed00
2 changed files with 21 additions and 0 deletions

View File

@ -203,6 +203,9 @@ namespace CPU
/** @brief To be used only once. */
void InitializeFeatures();
/** @brief Get CPU counter value. */
uint64_t Counter();
namespace MemBar
{
__attribute__((no_stack_protector)) static inline void Barrier()