Module vm

Source
Expand description

Virtual memory module for RISC-V architecture.

The virtual memory module is responsible for managing the virtual memory of the system. The module provides functions to initialize the virtual memory system, map physical memory to virtual memory, and switch page tables.

Modulesยง

mmu

Constantsยง

NUM_OF_ASID ๐Ÿ”’

Staticsยง

ASID_BITMAP_TABLES ๐Ÿ”’
PAGE_TABLES ๐Ÿ”’

Functionsยง

alloc_virtual_address_space
free_virtual_address_space
get_pagetable
get_root_pagetable
get_root_pagetable_ptr
is_asid_used
new_boxed_pagetable ๐Ÿ”’
new_raw_pagetableโš 
Allocates a new raw page table for the given ASID.