Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 fix a !MP build issue.



details:   https://anonhg.NetBSD.org/src/rev/a6896610ba2e
branches:  trunk
changeset: 433413:a6896610ba2e
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Sep 14 01:50:51 2018 +0000

description:
fix a !MP build issue.

diffstat:

 sys/arch/x86/x86/intr.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r cfe362e01165 -r a6896610ba2e sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c   Fri Sep 14 01:43:43 2018 +0000
+++ b/sys/arch/x86/x86/intr.c   Fri Sep 14 01:50:51 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.128 2018/09/10 05:08:55 cherry Exp $        */
+/*     $NetBSD: intr.c,v 1.129 2018/09/14 01:50:51 mrg Exp $   */
 
 /*
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.128 2018/09/10 05:08:55 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.129 2018/09/14 01:50:51 mrg Exp $");
 
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
@@ -1462,9 +1462,11 @@
 {
 #if !defined(XEN)
        struct intrsource *isp;
-#if NLAPIC > 0 && defined(MULTIPROCESSOR)
+#if NLAPIC > 0
+       static int first = 1;
+#if defined(MULTIPROCESSOR)
        int i;
-       static int first = 1;
+#endif
 #endif
 
 #if NLAPIC > 0



Home | Main Index | Thread Index | Old Index