summaryrefslogtreecommitdiff
path: root/sys/arch/arm64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arm64')
-rw-r--r--sys/arch/arm64/dev/efi_machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/arm64/dev/efi_machdep.c b/sys/arch/arm64/dev/efi_machdep.c
index 287310548c3..1144af51cf9 100644
--- a/sys/arch/arm64/dev/efi_machdep.c
+++ b/sys/arch/arm64/dev/efi_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efi_machdep.c,v 1.2 2022/10/12 13:39:50 kettenis Exp $ */
+/* $OpenBSD: efi_machdep.c,v 1.3 2022/10/20 18:43:35 kettenis Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
@@ -118,6 +118,10 @@ efi_attach(struct device *parent, struct device *self, void *aux)
printf(".%d", minor % 10);
printf("\n");
+ /* Early implementations can be buggy. */
+ if (major < 2 || (major == 2 && minor < 10))
+ return;
+
efi_map_runtime(sc);
/*