Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/pic Assert we can sleep in pic_add



details:   https://anonhg.NetBSD.org/src/rev/b4933e5cd6cf
branches:  trunk
changeset: 990627:b4933e5cd6cf
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Oct 31 16:24:47 2021 +0000

description:
Assert we can sleep in pic_add

diffstat:

 sys/arch/arm/pic/pic.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 40920aaad5c4 -r b4933e5cd6cf sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c    Sun Oct 31 16:23:47 2021 +0000
+++ b/sys/arch/arm/pic/pic.c    Sun Oct 31 16:24:47 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic.c,v 1.73 2021/10/31 16:23:48 skrll Exp $   */
+/*     $NetBSD: pic.c,v 1.74 2021/10/31 16:24:47 skrll Exp $   */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -33,7 +33,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.73 2021/10/31 16:23:48 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.74 2021/10/31 16:24:47 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -613,6 +613,8 @@
        size_t sourcebase;
        static ONCE_DECL(pic_once);
 
+       ASSERT_SLEEPABLE();
+
        RUN_ONCE(&pic_once, pic_init);
 
        KASSERT(strlen(pic->pic_name) > 0);



Home | Main Index | Thread Index | Old Index