From 97522a99ed4c03d0a7f38ddef54bfbd44739b969 Mon Sep 17 00:00:00 2001 From: kettenis Date: Wed, 14 Dec 2022 13:55:11 +0000 Subject: [PATCH] Put an splhigh() at the start of cpu_configure() to prevent splasserts trigger in autoconf. Matches what we do on (many) other architectures. ok miod@ --- sys/arch/armv7/armv7/autoconf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/armv7/armv7/autoconf.c b/sys/arch/armv7/armv7/autoconf.c index 64785f9643d..ba12c2f58e1 100644 --- a/sys/arch/armv7/armv7/autoconf.c +++ b/sys/arch/armv7/armv7/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.12 2022/09/08 10:22:06 kn Exp $ */ +/* $OpenBSD: autoconf.c,v 1.13 2022/12/14 13:55:11 kettenis Exp $ */ /* $NetBSD: autoconf.c,v 1.2 2001/09/05 16:17:36 matt Exp $ */ /* @@ -72,6 +72,8 @@ device_register(struct device *dev, void *aux) void cpu_configure(void) { + splhigh(); + softintr_init(); /* -- 2.20.1