Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from acidanthera:master #11

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
1d2fd79
Update to GitHub Actions v3
PMheart Apr 25, 2022
586cf1e
Update KnownPlugins.md
savvamitrofanov May 23, 2022
098e6de
Sort KnownPlugins.md by alphabet
savvamitrofanov May 23, 2022
250b65c
Allow loading on macOS 13 without `-lilubetaall`
PMheart Jun 7, 2022
42d75e9
Update KnownPlugins.md
Andrey1970AppleLife Jun 10, 2022
0a58752
Update KnownPlugins.md
Andrey1970AppleLife Jun 10, 2022
180c0cd
Update KnownPlugins.md
Andrey1970AppleLife Jun 10, 2022
f5454c4
kern_user: Add Ventura pathing (#81)
khronokernel Jun 13, 2022
60f0c9e
Fake SKL as KBL on macOS 13+ (#82)
PMheart Jun 13, 2022
9775e8b
Sync changelog
vit9696 Jun 13, 2022
8542170
kern_user.cpp: Fix Ventura cache path handling
khronokernel Jun 22, 2022
be0a2f6
Add patch with masking support (#83)
PMheart Jun 23, 2022
bf69c4f
Update README.md
Andrey1970AppleLife Jul 4, 2022
e816fac
Fix wrong KC segment name, thanks @mhaeuser (#84)
PMheart Jul 7, 2022
19c21ac
Bump version to 1.6.2
PMheart Jul 7, 2022
c094420
Bump version to 1.6.2
PMheart Jul 7, 2022
37e93c6
Fix wrong KC segment name, thanks @mhaeuser (#84)
PMheart Jul 7, 2022
1d07c9e
Merge branch 'master' of https://github.com/acidanthera/Lilu
PMheart Jul 7, 2022
2ff83c6
Sync changelog
PMheart Jul 7, 2022
329ade4
Disable EFI64 runtime APIs when `-legacy` is used on 32-bit kernels
Goldfish64 Jul 27, 2022
75cded6
Bump version
Andrey1970AppleLife Aug 6, 2022
d062fcf
Update KnownPlugins.md
Andrey1970AppleLife Sep 29, 2022
9f849ef
Added Raptor Lake CPU model (#85)
al3xtjames Dec 30, 2022
7717a09
Sync changelog
vit9696 Dec 30, 2022
307f1f8
Bump version
Andrey1970AppleLife Jan 2, 2023
6543c90
Added AMD IGPU detection
vit9696 Feb 28, 2023
653ede0
Treat AMD IGPU as an external GPU due to patch specifics
vit9696 Feb 28, 2023
2c53be1
Revert "Treat AMD IGPU as an external GPU due to patch specifics"
vit9696 Mar 2, 2023
3f61754
Bump version
Andrey1970AppleLife Mar 6, 2023
f07e333
Add __printflike to lilu_os_log declaration (#87)
dhinakg Apr 27, 2023
d3ed12a
Fix macOS 13+ recovery and installer detection
vit9696 May 7, 2023
f2addba
Bump version
Andrey1970AppleLife May 8, 2023
d8f3782
kern_start.cpp: Fix macOS 13+ installer detection
khronokernel May 18, 2023
a1de159
Update Changelog.md
Andrey1970AppleLife May 18, 2023
e6f108c
Allow loading on macOS 14 without -lilubetaall (#90)
Lorys89 Jun 5, 2023
ddbe880
Sync changelog
PMheart Jun 5, 2023
6b67099
Update README.md
Andrey1970AppleLife Jun 5, 2023
be1e92a
Bump version
Andrey1970AppleLife Jun 15, 2023
6a538f3
Added Broadwell-EP CPU model (#92)
al3xtjames Jun 23, 2023
3be92e3
Added Raptor Lake C0 stepping model (#91)
al3xtjames Jun 23, 2023
691dfd4
Update Changelog.md
Andrey1970AppleLife Jul 3, 2023
680daec
Remove unused code
PMheart Jul 9, 2023
09e2db5
Allow `KernelPatcher::findAndReplaceWithMask` to have different find/…
PMheart Jul 9, 2023
e03f930
Remove redundant logging, thanks @mhaeuser
PMheart Jul 9, 2023
4d8e62a
Sync changelog
PMheart Jul 9, 2023
9d577fd
Revert "Sync changelog"
PMheart Jul 10, 2023
29e991a
Revert "Remove redundant logging, thanks @mhaeuser"
PMheart Jul 10, 2023
1827e19
Revert "Allow `KernelPatcher::findAndReplaceWithMask` to have differe…
PMheart Jul 10, 2023
472442f
Bump version
Andrey1970AppleLife Aug 13, 2023
7d98a75
Update to GitHub Actions v4
vandroiy2013 May 6, 2024
fd94078
Switch to macOS 12 from latest, which is now macOS 14
vandroiy2013 May 6, 2024
a7fc69b
Fix the failure memory order argument to atomic_compare_exchange_stro…
AZero13 Dec 20, 2023
2dd82ab
Switch workflows back to macOS latest
dhinakg May 16, 2024
57cd8c2
Allow loading on macOS 15 without -lilubetaall (#94)
Lorys89 Jun 15, 2024
4256f43
Sync changelog
PMheart Jun 15, 2024
2ad3756
Update upload-release-action to v2
vandroiy2013 Aug 5, 2024
7fd770c
Update analyse clang and coverity to latest
vandroiy2013 Aug 5, 2024
ffec639
Bump version
Andrey1970AppleLife Aug 19, 2024
8ae3167
Add AMD IGPU detection via device-id (#97)
Zormeister Aug 27, 2024
1bf2bcc
Sync changelog
vit9696 Aug 27, 2024
cedfe8a
Revert "Add AMD IGPU detection via device-id (#97)"
vit9696 Aug 27, 2024
84fcf2d
Add AMD iGPU detection via device-id (V2) (#98)
Zormeister Sep 2, 2024
8e8eb25
Sync changelog
vit9696 Sep 2, 2024
42326bd
Add ArrowLake detection
vit9696 Nov 9, 2024
78877e9
Update DeviceID based AMD iGPU detection (#99)
Zormeister Nov 24, 2024
f32ae0f
Sync changelog
vit9696 Nov 24, 2024
337eeb5
Bump version
Andrey1970AppleLife Dec 29, 2024
2ec01fa
Update CI badge link
Andrey1970AppleLife Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
env:
JOB_TYPE: BUILD
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: acidanthera/MacKernelSDK
path: MacKernelSDK
Expand All @@ -31,13 +31,13 @@ jobs:
- run: xcodebuild -jobs 1 -arch x86_64 -arch ACID32 -configuration Release

- name: Upload to Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/*/*.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*/*.zip
Expand All @@ -50,8 +50,8 @@ jobs:
env:
JOB_TYPE: ANALYZE
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: acidanthera/MacKernelSDK
path: MacKernelSDK
Expand All @@ -69,8 +69,8 @@ jobs:
JOB_TYPE: COVERITY
if: github.repository_owner == 'acidanthera' && github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: acidanthera/MacKernelSDK
path: MacKernelSDK
Expand Down
38 changes: 38 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
Lilu Changelog
==============
#### v1.7.0
- Added Arrow Lake CPU definitions
- Improved AMD IGPU detection via device-id, thanks @Zormeister

#### v1.6.9
- Fixed loading on macOS 10.10 and older due to a MacKernelSDK regression
- Added AMD IGPU detection via device-id, thanks @Zormeister

#### v1.6.8
- Allow loading on macOS 15 without `-lilubetaall`

#### v1.6.7
- Added Broadwell-EP CPU model
- Added Raptor Lake C0 stepping model

#### v1.6.6
- Fixed macOS 13+ installer detection regression in 1.6.5
- Allow loading on macOS 14 without `-lilubetaall`

#### v1.6.5
- Fixed macOS 13+ recovery and installer detection

#### v1.6.4
- Added AMD IGPU detection

#### v1.6.3
- Added Raptor Lake CPU definitions

#### v1.6.2
- Fixed KC segment name, which also fixed kernel panic on macOS 13 b3
- Disable EFI64 runtime APIs when `-legacy` is used on 32-bit kernels

#### v1.6.1
- Allow loading on macOS 13 without `-lilubetaall`
- Added Ventura dyld shared cache pathing
- Changed SKL default ig-platform-id to KBL on macOS 13+
- Added patch with masking support

#### v1.6.0
- Dropped internal shared patcher instance grabbing API

Expand Down
6 changes: 4 additions & 2 deletions KnownPlugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ Please note that improperly written immature plugins will not be listed there.
[ATH9KFixup](https://github.com/chunnann/ATH9KFixup) | Various patches for unsupported Atheros Wi-Fi cards
[BrightnessKeys](https://github.com/acidanthera/BrightnessKeys) | Automatic handling of brightness keys based on ACPI Specification
[BlueToolFixup](https://github.com/acidanthera/BrcmPatchRAM) | Forces BlueTool to skip attempting a firmware update, allowing for some Broadcom chipsets to work on Monterey. It also properly sets the transport
[CPUFriend](https://github.com/PMheart/CPUFriend) | Dynamic power management data injection
[CpuTscSync](https://github.com/lvs1974/CpuTscSync) | Сombining functionality of VoodooTSCSync and disabling xcpm_urgency if TSC is not in sync
[CPUFriend](https://github.com/acidanthera/CPUFriend) | Dynamic power management data injection
[CpuTscSync](https://github.com/acidanthera/CpuTscSync) | Сombining functionality of VoodooTSCSync and disabling xcpm_urgency if TSC is not in sync
[CryptexFixup](https://github.com/acidanthera/CryptexFixup) | Kernel extension for installing Rosetta Cryptex in macOS Ventura
[DebugEnhancer](https://github.com/acidanthera/DebugEnhancer) | Enable debug output in the macOS kernel
[DiskArbitrationFixup](https://github.com/Goldfish64/DiskArbitrationFixup) | Disable the uninitialised disk message at disk insertion
[ECEnabler](https://github.com/1Revenger1/ECEnabler) | Allows reading Embedded Controller fields over 1 byte long, vastly reducing the amount of ACPI modification needed (if any) for working battery status
[HibernationFixup](https://github.com/acidanthera/HibernationFixup) | Enable 3 & 25 mode hibernation on certain hardware
[Innie](https://github.com/cdf/Innie) | Making PCIe drives appear as internal
[IntelBTPatcher](https://github.com/OpenIntelWireless/IntelBluetoothFirmware) | Fix Intel Bluetooth on Big Sur, Catalina, Mojave, High Sierra etc, tested with Big Sur and Catalina all working good.
[Kryptonite](https://github.com/mayankk2308/kryptonite) | Various patches for Thunderbolt-based eGPUs
[MacHyperVSupport](https://github.com/acidanthera/MacHyperVSupport) | Hyper-V integration services for macOS
[NoTouchID](https://github.com/al3xtjames/NoTouchID) | Disables Touch ID checks causing hangs
Expand Down
6 changes: 3 additions & 3 deletions Lilu.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
MODULE_NAME = as.vit9696.Lilu;
MODULE_START = "$(PRODUCT_NAME)_kern_start";
MODULE_STOP = "$(PRODUCT_NAME)_kern_stop";
MODULE_VERSION = 1.6.1;
MODULE_VERSION = 1.7.1;
OTHER_CFLAGS = (
"-mmmx",
"-msse",
Expand Down Expand Up @@ -935,7 +935,7 @@
MODULE_NAME = as.vit9696.Lilu;
MODULE_START = "$(PRODUCT_NAME)_kern_start";
MODULE_STOP = "$(PRODUCT_NAME)_kern_stop";
MODULE_VERSION = 1.6.1;
MODULE_VERSION = 1.7.1;
OTHER_CFLAGS = (
"-mmmx",
"-msse",
Expand Down Expand Up @@ -1100,7 +1100,7 @@
MODULE_NAME = as.vit9696.Lilu;
MODULE_START = "$(PRODUCT_NAME)_kern_start";
MODULE_STOP = "$(PRODUCT_NAME)_kern_stop";
MODULE_VERSION = 1.6.1;
MODULE_VERSION = 1.7.1;
OTHER_CFLAGS = (
"-mmmx",
"-msse",
Expand Down
8 changes: 8 additions & 0 deletions Lilu/Headers/kern_cpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ namespace CPUInfo {
CPU_MODEL_SKYLAKE = 0x4E,
CPU_MODEL_SKYLAKE_ULT = 0x4E,
CPU_MODEL_SKYLAKE_ULX = 0x4E,
CPU_MODEL_BROADWELL_EP = 0x4F,
CPU_MODEL_SKYLAKE_DT = 0x5E,
CPU_MODEL_SKYLAKE_W = 0x55,
CPU_MODEL_KABYLAKE = 0x8E,
Expand All @@ -93,6 +94,11 @@ namespace CPUInfo {
CPU_MODEL_ROCKETLAKE_S = 0xA7, /* desktop RocketLake */
CPU_MODEL_TIGERLAKE_U = 0x8C,
CPU_MODEL_ALDERLAKE_S = 0x97,
CPU_MODEL_RAPTORLAKE_S = 0xB7, /* Raptor Lake B0 stepping */
CPU_MODEL_RAPTORLAKE_HX = 0xBF, /* Raptor Lake C0 stepping */
CPU_MODEL_ARROWLAKE_HX = 0xC5,
CPU_MODEL_ARROWLAKE_S = 0xC6, /* desktop ArrowLake */
CPU_MODEL_ARROWLAKE_U = 0xB5,
};

/**
Expand Down Expand Up @@ -126,6 +132,8 @@ namespace CPUInfo {
RocketLake,
TigerLake,
AlderLake,
RaptorLake,
ArrowLake,
MaxGeneration
};

Expand Down
47 changes: 47 additions & 0 deletions Lilu/Headers/kern_devinfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ class DeviceInfo {
* @param obj wait for (PCI) object publishing
*/
void awaitPublishing(IORegistryEntry *obj);

/**
* Checks if an ATIAMD object is an AMD iGPU
*
* @param obj Object to run the check on.
*/
bool checkForAndSetAMDiGPU(IORegistryEntry *obj);

public:
/**
Expand Down Expand Up @@ -246,6 +253,46 @@ class DeviceInfo {
static constexpr uint32_t ConnectorLessCoffeeLakePlatformId5 {0x9BC50003};
static constexpr uint32_t ConnectorLessCoffeeLakePlatformId6 {0x9BC40003};

/**
* Kaveri, and also catches the new Granite Ridge rDNA 2 iGPU.
*/
static constexpr uint32_t GenericAMDKvGr = 0x1300;

/**
* Kabini, Mullins, Carrizo, Stoney Ridge, Wrestler.
*/
static constexpr uint32_t GenericAMDKbMlCzStnWr = 0x9800;

/**
* Van Gogh's other Device ID, specifically: 0x1435 rev 0xAE.
*/
static constexpr uint32_t GenericAMDVanGogh2 = 0x1400;

/**
* Raven/Raven2, Picasso, Barcelo, Phoenix, Phoenix 2 (possibly Hawk Point) & Strix (0x150E)
*/
static constexpr uint32_t GenericAMDRvPcBcPhn = 0x1500;

/**
* Renoir, Cezanne, Lucienne, Van Gogh, Rembrandt, Raphael.
*/
static constexpr uint32_t GenericAMDRnCznLcVghRmbRph = 0x1600;

/**
* Trinity
*/
static constexpr uint32_t GenericAMDTrinity = 0x9900;

/**
* Sumo & Sumo2?
*/
static constexpr uint32_t GenericAMDSumo = 0x9600;

/**
* Phoenix.
*/
static constexpr uint32_t GenericAMDPhoenix2 = 0x1900;

public:
/**
* Vesa framebuffer identifier
Expand Down
47 changes: 29 additions & 18 deletions Lilu/Headers/kern_patcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,28 +592,31 @@ class KernelPatcher {
}

/**
* Simple find and replace in kernel memory.
* Find one pattern with optional masking within a block of memory
*
* @param pattern pattern to search
* @param patternMask pattern mask
* @param patternSize size of pattern
* @param data a block of memory
* @param dataSize size of memory
* @param dataOffset data offset, to be set by this function
*
* @return true if pattern is found in data
*/
static inline bool findAndReplace(void *data, size_t dataSize, const void *find, size_t findSize, const void *replace, size_t replaceSize) {
void *res;
if (UNLIKELY((res = lilu_os_memmem(data, dataSize, find, findSize)) != nullptr)) {
if (UNLIKELY(MachInfo::setKernelWriting(true, KernelPatcher::kernelWriteLock) != KERN_SUCCESS)) {
SYSLOG("patcher", "failed to obtain write permissions for f/r");
return false;
}

lilu_os_memcpy(res, replace, replaceSize);
EXPORT static bool findPattern(const void *pattern, const void *patternMask, size_t patternSize, const void *data, size_t dataSize, size_t *dataOffset);

if (UNLIKELY(MachInfo::setKernelWriting(false, KernelPatcher::kernelWriteLock) != KERN_SUCCESS)) {
SYSLOG("patcher", "failed to restore write permissions for f/r");
}

return true;
}
/**
* Simple find and replace with masking in kernel memory.
*/
EXPORT static bool findAndReplaceWithMask(void *data, size_t dataSize, const void *find, size_t findSize, const void *findMask, size_t findMaskSize, const void *replace, size_t replaceSize, const void *replaceMask, size_t replaceMaskSize, size_t count=0, size_t skip=0);

return false;
/**
* Simple find and replace in kernel memory.
*/
static inline bool findAndReplace(void *data, size_t dataSize, const void *find, size_t findSize, const void *replace, size_t replaceSize) {
return findAndReplaceWithMask(data, dataSize, find, findSize, nullptr, 0, replace, replaceSize, nullptr, 0, 0, 0);
}

/**
* Simple find and replace in kernel memory but require both `find` and `replace` buffers to have the same length
*/
Expand All @@ -622,6 +625,14 @@ class KernelPatcher {
return findAndReplace(data, dataSize, find, N, replace, N);
}

/**
* Simple find and replace with masking in kernel memory but require both `find` and `replace` buffers and masking buffers to have the same length
*/
template <size_t N>
static inline bool findAndReplaceWithMask(void *data, size_t dataSize, const uint8_t (&find)[N], const uint8_t (&findMask)[N], const uint8_t (&replace)[N], const uint8_t (&replaceMask)[N], size_t count, size_t skip) {
return findAndReplaceWithMask(data, dataSize, find, N, findMask, N, replace, N, replaceMask, N, count, skip);
}

private:
/**
* Jump type for routing
Expand Down
20 changes: 20 additions & 0 deletions Lilu/Headers/kern_user.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,26 @@ class UserPatcher {
*/
static constexpr const char *bigSurSharedCacheLegacy {"/System/Library/dyld/dyld_shared_cache_x86_64"};

/**
* DYLD shared cache map path on Haswell+ on Ventura
*/
static constexpr const char *venturaSharedCacheMapHaswell {"/System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64h.map"};

/**
* DYLD shared cache map path on older systems on Ventura
*/
static constexpr const char *venturaSharedCacheMapLegacy {"/System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64.map"};

/**
* DYLD shared cache path on Haswell+ on Ventura
*/
static constexpr const char *venturaSharedCacheHaswell {"/System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64h"};

/**
* DYLD shared cache path on older systems on Ventura
*/
static constexpr const char *venturaSharedCacheLegacy {"/System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64"};

};

#endif /* kern_user_hpp */
7 changes: 5 additions & 2 deletions Lilu/Headers/kern_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ extern proc_t kernproc;
*
* @param format formatted string
*/
EXPORT extern "C" void lilu_os_log(const char *format, ...);
EXPORT extern "C" void lilu_os_log(const char *format, ...) __printflike(1, 2);

/**
* Two-way substring search
Expand Down Expand Up @@ -393,6 +393,9 @@ enum KernelVersion {
Catalina = 19,
BigSur = 20,
Monterey = 21,
Ventura = 22,
Sonoma = 23,
Sequoia = 24,
};

/**
Expand Down Expand Up @@ -707,7 +710,7 @@ class ThreadLocal {
for (size_t i = 0; ptr == nullptr && i < N; i++) {
thread_t nullThread = nullptr;
if (atomic_compare_exchange_strong_explicit(&threads[i], &nullThread, currThread,
memory_order_acq_rel, memory_order_acq_rel))
memory_order_acq_rel, memory_order_acquire))
ptr = &values[i];
}

Expand Down
2 changes: 1 addition & 1 deletion Lilu/PrivateHeaders/kern_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Configuration {
/**
* Maxmimum supported kernel version
*/
static constexpr KernelVersion maxKernel {KernelVersion::Monterey};
static constexpr KernelVersion maxKernel {KernelVersion::Sequoia};

/**
* Set once the arguments are parsed
Expand Down
2 changes: 1 addition & 1 deletion Lilu/Sources/kern_compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ static uint8_t *decompressInternal(uint32_t compression, uint32_t *dstlen, const

if (!buffer) Buffer::deleter(decompressedBuf);
} else {
SYSLOG("comp", "failed to allocate memory for decompression buffer of %u", dstlen);
SYSLOG("comp", "failed to allocate memory for decompression buffer of %u", *dstlen);
}

return 0;
Expand Down
10 changes: 10 additions & 0 deletions Lilu/Sources/kern_cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ void CPUInfo::init() {
bdi.cpuGeneration = CpuGeneration::Haswell;
break;
case CPU_MODEL_BROADWELL:
case CPU_MODEL_BROADWELL_EP:
case CPU_MODEL_BRYSTALWELL:
bdi.cpuGeneration = CpuGeneration::Broadwell;
break;
Expand Down Expand Up @@ -134,6 +135,15 @@ void CPUInfo::init() {
case CPU_MODEL_ALDERLAKE_S:
bdi.cpuGeneration = CpuGeneration::AlderLake;
break;
case CPU_MODEL_RAPTORLAKE_S:
case CPU_MODEL_RAPTORLAKE_HX:
bdi.cpuGeneration = CpuGeneration::RaptorLake;
break;
case CPU_MODEL_ARROWLAKE_S:
case CPU_MODEL_ARROWLAKE_HX:
case CPU_MODEL_ARROWLAKE_U:
bdi.cpuGeneration = CpuGeneration::ArrowLake;
break;
default:
bdi.cpuGeneration = CpuGeneration::Unknown;
break;
Expand Down
Loading