summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-05-28 20:27:51 +0200
committerAlmuHS <almuhs@github.com>2019-05-28 20:27:51 +0200
commit90a0c8811e28df1e1d7d62b832fdbb1eed6e3393 (patch)
treecc49620b2b308f8beb595781efd7a51470616c98
parentafa3817dee0e50e7d2a6b89a58ab8b56fae64d25 (diff)
fix: repaired bad addressing
-rw-r--r--i386/i386/cpuboot.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S
index 4673bba7..a101f2f4 100644
--- a/i386/i386/cpuboot.S
+++ b/i386/i386/cpuboot.S
@@ -92,12 +92,12 @@ _apboot:
#if PAE
//set_cr3((unsigned)_kvtophys(kernel_pmap->pdpbase));
- movl pdpbase_addr, %eax
+ movl (pdpbase_addr), %eax
movl %eax, %cr3
#ifndef MACH_HYP
//if (!CPU_HAS_FEATURE(CPU_FEATURE_PAE))
- movl cpu_features, %eax
+ movl (cpu_features), %eax
test $(1<<CPU_FEATURE_PAE), %eax
jnz setpae
jz nopae
@@ -113,7 +113,7 @@ nopae:
#endif /* MACH_HYP */
#else
//set_cr3((unsigned)_kvtophys(kernel_page_dir));
- movl kernel_page_dir_addr, %eax
+ movl (kernel_page_dir_addr), %eax
movl %eax, %cr3
#endif /* PAE */
@@ -134,7 +134,7 @@ nopae:
//if (CPU_HAS_FEATURE(CPU_FEATURE_PGE))
- movl cpu_features, %eax
+ movl (cpu_features), %eax
test $(1<<CPU_FEATURE_PGE), %eax
jnz setpge
jz nopge