Upgrade VMM for processes

This commit is contained in:
2026-03-22 09:03:43 +01:00
parent 3ae56bbad5
commit ac788c55d3
9 changed files with 233 additions and 69 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ void load_cr3(uint64_t value) {
* This function is used to flush at least the TLB entrie(s)
* for the page that contains the <addr> address.
*/
static inline void invlpg(void *addr)
void invlpg(void *addr)
{
asm volatile("invlpg (%0)" :: "r"(addr) : "memory");
}
@@ -59,7 +59,7 @@ static inline void invlpg(void *addr)
* Return:
* <virt> - Pointer to allocated page table
*/
static uint64_t* alloc_page_table()
uint64_t* alloc_page_table()
{
uint64_t* virt = (uint64_t*)PHYS_TO_VIRT(pmm_alloc());