From dc920f9c01d33ed318d94e9e38b23eeb78fbfe8b Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 14 Dec 2022 13:55:12 +0000 Subject: 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(-) (limited to 'sys/arch/armv7') 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(); /* -- cgit v1.2.3