diff options
Diffstat (limited to 'src/kernel/arch/i386/pagedir.c')
-rw-r--r-- | src/kernel/arch/i386/pagedir.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/kernel/arch/i386/pagedir.c b/src/kernel/arch/i386/pagedir.c index 264508b..b52075d 100644 --- a/src/kernel/arch/i386/pagedir.c +++ b/src/kernel/arch/i386/pagedir.c @@ -89,10 +89,5 @@ void pagedir_map(struct pagedir *dir, void *virt, void *phys, } void pagedir_use(struct pagedir *dir) { - asm volatile("mov %0, %%cr3;" - - "mov %%cr0, %%eax;" - "or $0x80000001, %%eax;" - "mov %%eax, %%cr0;" - : : "r" (dir) : "eax"); + asm volatile("mov %0, %%cr3;" : : "r" (dir) : "memory"); } |