Skip to content

Commit

Permalink
Added Alder Lake CPU model support
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Nov 11, 2021
1 parent cd87088 commit 23fa49f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Expand Up @@ -2,6 +2,7 @@ Lilu Changelog
==============
#### v1.5.8
- Fixed kernel panic on macOS 10.15 and earlier introduced in 1.5.7
- Added Alder Lake CPU model support

#### v1.5.7
- Added address slot support for all 64-bit macOS version
Expand Down
2 changes: 2 additions & 0 deletions Lilu/Headers/kern_cpu.hpp
Expand Up @@ -92,6 +92,7 @@ namespace CPUInfo {
CPU_MODEL_COMETLAKE_U = 0xA6,
CPU_MODEL_ROCKETLAKE_S = 0xA7, /* desktop RocketLake */
CPU_MODEL_TIGERLAKE_U = 0x8C,
CPU_MODEL_ALDERLAKE_S = 0x97,
};

/**
Expand Down Expand Up @@ -124,6 +125,7 @@ namespace CPUInfo {
CometLake,
RocketLake,
TigerLake,
AlderLake,
MaxGeneration
};

Expand Down
3 changes: 3 additions & 0 deletions Lilu/Sources/kern_cpu.cpp
Expand Up @@ -131,6 +131,9 @@ void CPUInfo::init() {
case CPU_MODEL_TIGERLAKE_U:
bdi.cpuGeneration = CpuGeneration::TigerLake;
break;
case CPU_MODEL_ALDERLAKE_S:
bdi.cpuGeneration = CpuGeneration::AlderLake;
break;
default:
bdi.cpuGeneration = CpuGeneration::Unknown;
break;
Expand Down

0 comments on commit 23fa49f

Please sign in to comment.