Add cache line size bit

This commit is contained in:
2026-10-20 02:23:32 +02:00
parent 15bf9b4dca
commit a8bf7d7a28
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -5,3 +5,5 @@
static inline void arch_cpu_pause() { static inline void arch_cpu_pause() {
asm volatile("pause"); asm volatile("pause");
} }
#define ARCH_CACHE_LINE_SIZE 64
+3
View File
@@ -3,3 +3,6 @@
#pragma once #pragma once
#include <bits/cpu.h> #include <bits/cpu.h>
#include <stddef.h>
constexpr size_t CACHE_LINE_SIZE = ARCH_CACHE_LINE_SIZE;