mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
Kernel: Move all CPU feature initialization into cpu_setup()
..and do it very very early in boot.
This commit is contained in:
parent
210adaeca6
commit
6fea316611
4 changed files with 61 additions and 90 deletions
|
@ -553,7 +553,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
void detect_cpu_features();
|
||||
void cpu_setup();
|
||||
extern bool g_cpu_supports_nx;
|
||||
extern bool g_cpu_supports_pae;
|
||||
extern bool g_cpu_supports_pge;
|
||||
|
@ -566,12 +566,6 @@ 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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue