Add cache line size bit
This commit is contained in:
@@ -5,3 +5,5 @@
|
||||
static inline void arch_cpu_pause() {
|
||||
asm volatile("pause");
|
||||
}
|
||||
|
||||
#define ARCH_CACHE_LINE_SIZE 64
|
||||
|
||||
@@ -3,3 +3,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <bits/cpu.h>
|
||||
#include <stddef.h>
|
||||
|
||||
constexpr size_t CACHE_LINE_SIZE = ARCH_CACHE_LINE_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user