Skip to content

Commit

Permalink
more new processors
Browse files Browse the repository at this point in the history
Signed-off-by: Slice <[email protected]>
  • Loading branch information
SergeySlice committed Dec 6, 2024
1 parent cd0baeb commit e21feb5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Include/Acidanthera/Library/OcCpuLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ typedef enum {
OcCpuGenerationIceLake,
OcCpuGenerationTigerLake,
OcCpuGenerationAlderLake,
OcCpuGenerationRaptorLake,
OcCpuGenerationArrowLake,
OcCpuGenerationMaxGeneration
} OC_CPU_GENERATION;

Expand Down
2 changes: 2 additions & 0 deletions Include/Intel/IndustryStandard/ProcessorInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ typedef enum {
#define CPU_MODEL_RAPTORLAKE_B 0xBF /* 13h Raptor Lake, i5-13400h */
#define CPU_MODEL_METEORLAKE 0xAA /* 14h Meteor Lake */
#define CPU_MODEL_ARROWLAKE 0xC6
#define CPU_MODEL_ARROWLAKE_X 0xC5 /* 15h Arrow Lake */
#define CPU_MODEL_ARROWLAKE_U 0xB5 /* 15h Arrow Lake */


#define AMD_CPU_FAMILY 0xF
Expand Down
2 changes: 2 additions & 0 deletions Library/OcCpuLib/AppleCpuSupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ InternalDetectAppleProcessorType (
case CPU_MODEL_RAPTORLAKE:
case CPU_MODEL_METEORLAKE:
case CPU_MODEL_ARROWLAKE:
case CPU_MODEL_ARROWLAKE_X:
case CPU_MODEL_ARROWLAKE_U:
if (AppleMajorType == AppleProcessorMajorM3) {
// MB101 (m3 7Y32)
return AppleProcessorTypeCoreM3Type7; // 0x0C07
Expand Down
14 changes: 12 additions & 2 deletions Library/OcCpuLib/OcCpuLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1463,11 +1463,21 @@ InternalDetectIntelProcessorGeneration (
CpuGeneration = OcCpuGenerationTigerLake;
break;
case CPU_MODEL_ALDERLAKE_S:
case CPU_MODEL_RAPTORLAKE:
case CPU_MODEL_METEORLAKE:

case CPU_MODEL_ALDERLAKE_ULT:
CpuGeneration = OcCpuGenerationAlderLake;
break;
case CPU_MODEL_RAPTORLAKE_B:
case CPU_MODEL_RAPTORLAKE:
case CPU_MODEL_METEORLAKE:
CpuGeneration = OcCpuGenerationRaptorLake;
break;
case CPU_MODEL_ARROWLAKE:
case CPU_MODEL_ARROWLAKE_X:
case CPU_MODEL_ARROWLAKE_U:
CpuGeneration = OcCpuGenerationArrowLake;
break;


CpuGeneration = OcCpuGenerationAlderLake;
break;
Expand Down

0 comments on commit e21feb5

Please sign in to comment.