From 061363a38eff486c809d397e69ae4fe290db95d2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 20 Jul 2021 21:30:45 +0200 Subject: rename pagedir_use() to pagedir_switch() imo "use" was slightly misleading --- src/kernel/arch/i386/pagedir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/arch/i386') diff --git a/src/kernel/arch/i386/pagedir.c b/src/kernel/arch/i386/pagedir.c index b52075d..8ab406d 100644 --- a/src/kernel/arch/i386/pagedir.c +++ b/src/kernel/arch/i386/pagedir.c @@ -88,6 +88,6 @@ void pagedir_map(struct pagedir *dir, void *virt, void *phys, }; } -void pagedir_use(struct pagedir *dir) { +void pagedir_switch(struct pagedir *dir) { asm volatile("mov %0, %%cr3;" : : "r" (dir) : "memory"); } -- cgit v1.2.3