⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module mmu

Module mmu 

Source
Expand description

x86_64 Memory Management Unit (MMU) support

Handles x86_64-specific paging setup and management.

Structs§

PageFaultErrorCode
Page fault error code bits

Functions§

flush_tlb
Flush entire TLB by reloading CR3
flush_tlb_address
Flush TLB entry for a specific address
handle_page_fault
Handle page fault
init
Enable paging and set up initial page tables
invlpg
Invalidate TLB entry for virtual address
read_cr2
Read CR2 register (page fault address)
read_cr3
Read CR3 register (page table base)
write_cr3
Write CR3 register (page table base)