OcCpuLib: Fix processor generation

This commit is contained in:
vit9696 2021-11-11 14:23:15 +03:00
parent 13af8ec14a
commit 4073b8afae
2 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,7 @@ typedef enum {
OcCpuGenerationCannonLake,
OcCpuGenerationIceLake,
OcCpuGenerationTigerLake,
OcCpuGenerationAlderLake,
OcCpuGenerationMaxGeneration
} OC_CPU_GENERATION;

View File

@ -1362,6 +1362,9 @@ InternalDetectIntelProcessorGeneration (
case CPU_MODEL_TIGERLAKE_U:
CpuGeneration = OcCpuGenerationTigerLake;
break;
case CPU_MODEL_ALDERLAKE_S:
CpuGeneration = OcCpuGenerationAlderLake;
break;
default:
if (CpuInfo->Model < CPU_MODEL_PENRYN) {
CpuGeneration = OcCpuGenerationPrePenryn;