fix(cpuid): set the x2APIC ID in CPUID leaf 0x1f

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
This commit is contained in:
Changyuan Lyu 2024-08-03 20:42:23 -07:00 committed by Lencerf
parent 7d075d6a13
commit 2c419dae89

View file

@ -232,7 +232,7 @@ where
if in_.func == 0x1 {
out.ebx &= 0x00ff_ffff;
out.ebx |= id << 24;
} else if in_.func == 0xb {
} else if in_.func == 0xb || in_.func == 0x1f {
out.edx = id;
}
}