1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:17:35 +00:00

Kernel: Clean up MemoryManager initialization a bit more

Move the CPU feature enabling to functions in Arch/i386/CPU.cpp.
This commit is contained in:
Andreas Kling 2020-01-17 23:56:13 +01:00
parent 6b52f6c61d
commit 3e8b60c618
4 changed files with 94 additions and 90 deletions

View file

@ -539,8 +539,13 @@ extern bool g_cpu_supports_tsc;
extern bool g_cpu_supports_umip;
void stac();
void clac();
void x86_enable_pae();
void x86_enable_pge();
void x86_enable_smep();
void x86_enable_smap();
void x86_enable_nx();
void x86_enable_wp();
class SmapDisabler {
public: