Kernel: Add PageTable API to invalidate full address space

This commit is contained in:
2026-05-19 23:46:56 +03:00
parent d52ad29afa
commit fb9c67ab15
3 changed files with 67 additions and 55 deletions

View File

@@ -45,6 +45,8 @@ namespace Kernel
WriteThrough,
};
static constexpr bool full_tlb_flush_threshold = 32;
public:
static void initialize_fast_page();
static void initialize_and_load();
@@ -133,6 +135,7 @@ namespace Kernel
void invalidate_page(vaddr_t addr, bool send_smp_message) { invalidate_range(addr, 1, send_smp_message); }
void invalidate_range(vaddr_t addr, size_t pages, bool send_smp_message);
void invalidate_full_address_space(bool global);
InterruptState lock() const { return m_lock.lock(); }
void unlock(InterruptState state) const { m_lock.unlock(state); }