summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2022-08-23 11:39:35 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2022-08-23 11:39:35 +0000
commitec6307c9c9d5f031f5775e779fbbbd8f6a2621da (patch)
tree1a2731abf1563daeb464a0571d6af14ab2d3dee2 /sys/arch
parentd22bfb695a028538e4f01a769177d2a1586e62c5 (diff)
Recognize the cores on Apple's M2 SoC.
ok jsg@, tobhe@, deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm64/arm64/cpu.c6
1 files changed, 5 insertions, 1 deletions
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 <drahn@dalerahn.com>
@@ -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 },
};