feat(amd64): add PGE to cpuid

This commit is contained in:
Loïc Grégoire
2026-03-29 21:16:57 -04:00
parent 88cdefe929
commit b0fb96dc5b
2 changed files with 7 additions and 2 deletions
+4
View File
@@ -320,6 +320,7 @@ pub const CpuFeatures = struct {
pcid: bool,
smap: bool,
smep: bool,
pge: bool,
vendor_string: [12]u8,
brand_string: [48]u8,
};
@@ -343,6 +344,7 @@ pub fn detect_cpu_features() void {
var pcid = false;
var smap = false;
var smep = false;
var pge = false;
var vendor_string: [12]u8 = undefined;
var brand_string: [48]u8 = undefined;
@@ -361,6 +363,7 @@ pub fn detect_cpu_features() void {
xsave = ecx.xsave;
pcid = ecx.pcid;
fxsave = edx.fxsave;
pge = edx.pge;
}
if (max_basic >= 0x7) {
@@ -416,5 +419,6 @@ pub fn detect_cpu_features() void {
.smep = smep,
.vendor_string = vendor_string,
.brand_string = brand_string,
.pge = pge,
};
}