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 The assertion at the bottom of intr_ipi_sen...



details:   https://anonhg.NetBSD.org/src/rev/834e351d708c
branches:  trunk
changeset: 826275:834e351d708c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Aug 25 20:36:16 2017 +0000

description:
The assertion at the bottom of intr_ipi_send is invalid for UP configs; add
a text for arm_cpu_max == 1

diffstat:

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

diffs (27 lines):

diff -r 7a865b293bdc -r 834e351d708c sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c    Fri Aug 25 17:43:33 2017 +0000
+++ b/sys/arch/arm/pic/pic.c    Fri Aug 25 20:36:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic.c,v 1.37 2017/06/01 02:45:06 chs Exp $     */
+/*     $NetBSD: pic.c,v 1.38 2017/08/25 20:36:16 jmcneill 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.37 2017/06/01 02:45:06 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.38 2017/08/25 20:36:16 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -206,7 +206,7 @@
                        sent_p = true;
                }
        }
-       KASSERT(cold || sent_p);
+       KASSERT(cold || sent_p || arm_cpu_max == 1);
 }
 #endif /* MULTIPROCESSOR */
 



Home | Main Index | Thread Index | Old Index