From 69fcf332ed401a148f08fe2c7d31c745f794e24e Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 9 Feb 2023 21:02:24 +0000 Subject: [PATCH] Recognize the cores on Apple's M2 Pro/Max SoCs. ok patrick@ --- sys/arch/arm64/arm64/cpu.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index 31771c80602..00edcf046c9 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.82 2023/01/30 20:05:31 kettenis Exp $ */ +/* $OpenBSD: cpu.c,v 1.83 2023/02/09 21:02:24 kettenis Exp $ */ /* * Copyright (c) 2016 Dale Rahn @@ -103,6 +103,10 @@ #define CPU_PART_FIRESTORM_MAX 0x029 #define CPU_PART_BLIZZARD 0x032 #define CPU_PART_AVALANCHE 0x033 +#define CPU_PART_BLIZZARD_PRO 0x034 +#define CPU_PART_AVALANCHE_PRO 0x035 +#define CPU_PART_BLIZZARD_MAX 0x036 +#define CPU_PART_AVALANCHE_MAX 0x037 #define CPU_IMPL(midr) (((midr) >> 24) & 0xff) #define CPU_PART(midr) (((midr) >> 4) & 0xfff) @@ -178,6 +182,10 @@ struct cpu_cores cpu_cores_apple[] = { { CPU_PART_FIRESTORM_MAX, "Firestorm Max" }, { CPU_PART_BLIZZARD, "Blizzard" }, { CPU_PART_AVALANCHE, "Avalanche" }, + { CPU_PART_BLIZZARD_PRO, "Blizzard Pro" }, + { CPU_PART_AVALANCHE_PRO, "Avalanche Pro" }, + { CPU_PART_BLIZZARD_MAX, "Blizzard Max" }, + { CPU_PART_AVALANCHE_MAX, "Avalanche Max" }, { 0, NULL }, }; -- 2.20.1