diff options
Diffstat (limited to 'src/kernel/arch/i386/sysenter.s')
-rw-r--r-- | src/kernel/arch/i386/sysenter.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/arch/i386/sysenter.s b/src/kernel/arch/i386/sysenter.s index 666c0f0..5630c3b 100644 --- a/src/kernel/arch/i386/sysenter.s +++ b/src/kernel/arch/i386/sysenter.s @@ -18,6 +18,11 @@ sysexit: mov %ax, %fs mov %ax, %gs + // enable paging + mov %cr0, %eax + or $0x80000000, %eax + mov %eax, %cr0 + sysexit |