From 42326bd384322677c62263471f80056ae5b03fda Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sat, 9 Nov 2024 15:51:37 +0300 Subject: [PATCH] Add ArrowLake detection --- Changelog.md | 3 +++ Lilu.xcodeproj/project.pbxproj | 6 +++--- Lilu/Headers/kern_cpu.hpp | 4 ++++ Lilu/Sources/kern_cpu.cpp | 5 +++++ 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 8f5c28bd..f72244ca 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,8 @@ Lilu Changelog ============== +#### v1.7.0 +- Added Arrow Lake CPU definitions + #### 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 diff --git a/Lilu.xcodeproj/project.pbxproj b/Lilu.xcodeproj/project.pbxproj index b56c569f..0034fd94 100644 --- a/Lilu.xcodeproj/project.pbxproj +++ b/Lilu.xcodeproj/project.pbxproj @@ -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.9; + MODULE_VERSION = 1.7.0; OTHER_CFLAGS = ( "-mmmx", "-msse", @@ -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.9; + MODULE_VERSION = 1.7.0; OTHER_CFLAGS = ( "-mmmx", "-msse", @@ -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.9; + MODULE_VERSION = 1.7.0; OTHER_CFLAGS = ( "-mmmx", "-msse", diff --git a/Lilu/Headers/kern_cpu.hpp b/Lilu/Headers/kern_cpu.hpp index a4273eec..bb504e08 100644 --- a/Lilu/Headers/kern_cpu.hpp +++ b/Lilu/Headers/kern_cpu.hpp @@ -96,6 +96,9 @@ namespace CPUInfo { 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, }; /** @@ -130,6 +133,7 @@ namespace CPUInfo { TigerLake, AlderLake, RaptorLake, + ArrowLake, MaxGeneration }; diff --git a/Lilu/Sources/kern_cpu.cpp b/Lilu/Sources/kern_cpu.cpp index 40f74177..206fa3c2 100644 --- a/Lilu/Sources/kern_cpu.cpp +++ b/Lilu/Sources/kern_cpu.cpp @@ -139,6 +139,11 @@ void CPUInfo::init() { 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;