From 1b05999a3d13b1c7ad9a57bfb85b8e69ec9a6c96 Mon Sep 17 00:00:00 2001 From: AlmuHS Date: Mon, 8 Jul 2019 21:14:52 +0200 Subject: experiment: move paging enabling to C --- i386/i386/cpuboot.S | 133 ++++++++++++++++++++++++++-------------------------- i386/i386/mp_desc.c | 28 +++++++++++ i386/i386/mp_desc.h | 1 + 3 files changed, 96 insertions(+), 66 deletions(-) diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S index f0af9cf9..e1e3635a 100644 --- a/i386/i386/cpuboot.S +++ b/i386/i386/cpuboot.S @@ -85,72 +85,72 @@ _apboot: movw %ax,%es movw %ax,%ss -#if PAE - //set_cr3((unsigned)_kvtophys(kernel_pmap->pdpbase)); - movl (pdpbase_addr), %eax - movl %eax, %cr3 - -#ifndef MACH_HYP - //if (!CPU_HAS_FEATURE(CPU_FEATURE_PAE)) - movl (cpu_features), %eax - test $(1<pdpbase));*/ +/* movl (pdpbase_addr), %eax*/ +/* movl %eax, %cr3*/ + +/*#ifndef MACH_HYP*/ +/* //if (!CPU_HAS_FEATURE(CPU_FEATURE_PAE))*/ +/* movl (cpu_features), %eax*/ +/* test $(1<