From: kettenis Date: Tue, 23 Aug 2022 11:39:34 +0000 (+0000) Subject: Recognize the cores on Apple's M2 SoC. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=88d270e9074ac5efd87a29cbd39370d8edad3045;p=openbsd Recognize the cores on Apple's M2 SoC. ok jsg@, tobhe@, deraadt@ --- diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index 329521f1e64..c0d7e1ee766 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.66 2022/08/05 12:52:35 robert Exp $ */ +/* $OpenBSD: cpu.c,v 1.67 2022/08/23 11:39:34 kettenis Exp $ */ /* * Copyright (c) 2016 Dale Rahn @@ -95,6 +95,8 @@ #define CPU_PART_FIRESTORM_PRO 0x025 #define CPU_PART_ICESTORM_MAX 0x028 #define CPU_PART_FIRESTORM_MAX 0x029 +#define CPU_PART_BLIZZARD 0x032 +#define CPU_PART_AVALANCHE 0x033 #define CPU_IMPL(midr) (((midr) >> 24) & 0xff) #define CPU_PART(midr) (((midr) >> 4) & 0xfff) @@ -161,6 +163,8 @@ struct cpu_cores cpu_cores_apple[] = { { CPU_PART_FIRESTORM_PRO, "Firestorm Pro" }, { CPU_PART_ICESTORM_MAX, "Icestorm Max" }, { CPU_PART_FIRESTORM_MAX, "Firestorm Max" }, + { CPU_PART_BLIZZARD, "Blizzard" }, + { CPU_PART_AVALANCHE, "Avalanche" }, { 0, NULL }, };