diff options
author | AlmuHS <almuhs@github.com> | 2019-05-13 21:16:24 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-05-13 21:16:24 +0200 |
commit | ce30d2addfb42de0b36bfdebe22ee9096d053dba (patch) | |
tree | ae1aaaa8034bc65063371c1aefd042155113a0a9 /i386/i386/cpuboot.S | |
parent | 12478c0d40c8a036e939b04bbc57d3b0974c8418 (diff) |
Revert "experiment: try to enable pagging"
This reverts commit 2df0c646aa188aab00f2b119574da61a94353b59.
revert failed experiments
Diffstat (limited to 'i386/i386/cpuboot.S')
-rw-r--r-- | i386/i386/cpuboot.S | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S index 289016f4..03b4a470 100644 --- a/i386/i386/cpuboot.S +++ b/i386/i386/cpuboot.S @@ -96,26 +96,9 @@ _apboot: popf pushl stack_ptr - cli - - /* Initialize pagging */ - mov kernel_page_dir, %eax - add KERNELBASE,%eax - mov %eax, %cr3 - - mov %cr0,%eax - or $0x80010000,%eax - - mov %eax,%cr0 - mov %cr0,%eax - and $0x9fffffff,%eax - mov %eax,%cr0 - mov %cr4,%eax - or $0x80,%al - mov %eax,%cr4 - - call cpu_ap_main + call cpu_ap_main + cli .align 0x10 |