From acc7657309d9844ec1e49f1b73b2286b2c753f70 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 26 Apr 1997 18:57:34 +0000 Subject: [PATCH] Fix some SMP merge bugs (from Bruce) - #include out of order pccard_configure() called twice munged tab (existing problem made worse) --- sys/amd64/amd64/autoconf.c | 18 ++++++------------ sys/i386/i386/autoconf.c | 18 ++++++------------ 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/sys/amd64/amd64/autoconf.c b/sys/amd64/amd64/autoconf.c index 70e0b137dfee..7fad268092f6 100644 --- a/sys/amd64/amd64/autoconf.c +++ b/sys/amd64/amd64/autoconf.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91 - * $Id: autoconf.c,v 1.64 1997/02/22 09:32:08 peter Exp $ + * $Id: autoconf.c,v 1.65 1997/04/26 11:45:02 peter Exp $ */ /* @@ -61,11 +61,10 @@ #include #include #include -#include /* For interrupts */ - #if defined(APIC_IO) #include #endif /* APIC_IO */ +#include /* For interrupts */ #include "isa.h" #if NISA > 0 @@ -166,16 +165,11 @@ configure(dummy) /* Allow all routines to decide for themselves if they want intrs */ #if defined(APIC_IO) configure_local_apic(); - enable_intr(); -#else - enable_intr(); - INTREN(IRQ_SLAVE); #endif /* APIC_IO */ - -#if NCRD > 0 - /* Before isa_configure to avoid ISA drivers finding our cards */ - pccard_configure(); -#endif + enable_intr(); +#if !defined(APIC_IO) + INTREN(IRQ_SLAVE); +#endif /* !APIC_IO */ #if NEISA > 0 eisa_configure(); diff --git a/sys/i386/i386/autoconf.c b/sys/i386/i386/autoconf.c index 70e0b137dfee..7fad268092f6 100644 --- a/sys/i386/i386/autoconf.c +++ b/sys/i386/i386/autoconf.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91 - * $Id: autoconf.c,v 1.64 1997/02/22 09:32:08 peter Exp $ + * $Id: autoconf.c,v 1.65 1997/04/26 11:45:02 peter Exp $ */ /* @@ -61,11 +61,10 @@ #include #include #include -#include /* For interrupts */ - #if defined(APIC_IO) #include #endif /* APIC_IO */ +#include /* For interrupts */ #include "isa.h" #if NISA > 0 @@ -166,16 +165,11 @@ configure(dummy) /* Allow all routines to decide for themselves if they want intrs */ #if defined(APIC_IO) configure_local_apic(); - enable_intr(); -#else - enable_intr(); - INTREN(IRQ_SLAVE); #endif /* APIC_IO */ - -#if NCRD > 0 - /* Before isa_configure to avoid ISA drivers finding our cards */ - pccard_configure(); -#endif + enable_intr(); +#if !defined(APIC_IO) + INTREN(IRQ_SLAVE); +#endif /* !APIC_IO */ #if NEISA > 0 eisa_configure();