Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Only include IPI stubs in the MULTIPROCES...



details:   https://anonhg.NetBSD.org/src/rev/888cedcd72a6
branches:  trunk
changeset: 539855:888cedcd72a6
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Wed Nov 27 21:59:55 2002 +0000

description:
Only include IPI stubs in the MULTIPROCESSOR case. From Hubert Feyrer.

diffstat:

 sys/arch/i386/i386/vector.S |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (47 lines):

diff -r 83793a4f4b58 -r 888cedcd72a6 sys/arch/i386/i386/vector.S
--- a/sys/arch/i386/i386/vector.S       Wed Nov 27 21:26:57 2002 +0000
+++ b/sys/arch/i386/i386/vector.S       Wed Nov 27 21:59:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vector.S,v 1.1 2002/11/22 15:01:18 fvdl Exp $  */
+/*     $NetBSD: vector.S,v 1.2 2002/11/27 21:59:55 fvdl Exp $  */
 
 /*
  * Copyright 2002 (c) Wasabi Systems, Inc.
@@ -146,8 +146,8 @@
        shl     $24,%eax                                ;\
        orl     %edx,%eax
 
-
 #if NLAPIC > 0
+#ifdef MULTIPROCESSOR
 IDTVEC(recurse_lapic_ipi)
        pushfl
        pushl   %cs
@@ -178,7 +178,7 @@
        sti
        INTRFASTEXIT
 
-#if defined(DDB) && defined(MULTIPROCESSOR)
+#if defined(DDB)
 IDTVEC(intrddbipi)
 1:
        str     %ax
@@ -194,7 +194,8 @@
        movl    $0,_C_LABEL(lapic_tpr)
        iret
        jmp     1b
-#endif /* DDB && MULTIPROCESSOR */
+#endif /* DDB */
+#endif /* MULTIPROCESSOR */
        
        /*
         * Interrupt from the local APIC timer.
@@ -230,7 +231,7 @@
        orl     $(1 << LIR_TIMER),CPUVAR(IPENDING)
        sti
        INTRFASTEXIT
-#endif
+#endif /* NLAPIC > 0 */
 
 #ifdef MULTIPROCESSOR
 #define LOCK_KERNEL    call _C_LABEL(i386_intlock)



Home | Main Index | Thread Index | Old Index