IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
features.hpp File Reference

CPU feature control. More...

#include <arch/types.hpp>
Include dependency graph for features.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

auto cpuEnableNoExecute () noexcept -> bool
 Enable no-execute page protection (EFER.NXE) if CPU supports it.

Detailed Description

CPU feature control.

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file features.hpp.

Function Documentation

◆ cpuEnableNoExecute()

auto cpuEnableNoExecute ( ) ->bool
nodiscardnoexcept

Enable no-execute page protection (EFER.NXE) if CPU supports it.

(false on i386: NX bit exists only in PAE and long mode page tables)

Returns
true if no-execute protection is enabled

Definition at line 36 of file features.cpp.