diff options
author | jhb <jhb@FreeBSD.org> | 2003-11-03 22:20:50 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-11-03 22:20:50 +0000 |
commit | 35c1473f4905d134ee92ab26ae8c7de2c3788037 (patch) | |
tree | a3f15f8f19b32dd9938de8ec4f174a51321dcbfd | |
parent | 84abbca28e95334b664821f449657630b393c81d (diff) | |
download | FreeBSD-src-35c1473f4905d134ee92ab26ae8c7de2c3788037.zip FreeBSD-src-35c1473f4905d134ee92ab26ae8c7de2c3788037.tar.gz |
- Remove explicit enabling of the BSP's APIC in the APIC_IO case and the
slave pin on the master PIC in the !APIC_IO case. The PIC drivers now
manage these details internally.
- Remove an spl0() that hasn't done anything since SMPng was first
committed.
- Update some comments that have rotted since SMPng.
-rw-r--r-- | sys/i386/i386/autoconf.c | 39 |
1 files changed, 3 insertions, 36 deletions
diff --git a/sys/i386/i386/autoconf.c b/sys/i386/i386/autoconf.c index 8067d49..2919200 100644 --- a/sys/i386/i386/autoconf.c +++ b/sys/i386/i386/autoconf.c @@ -77,11 +77,6 @@ __FBSDID("$FreeBSD$"); #include <machine/bootinfo.h> #include <machine/md_var.h> -#ifdef APIC_IO -#include <machine/smp.h> -#else -#include <i386/isa/icu.h> -#endif /* APIC_IO */ #ifdef DEV_ISA #include <isa/isavar.h> @@ -114,28 +109,11 @@ configure(dummy) { /* - * Activate the ICU's. Note that we are explicitly at splhigh() - * at present as we have no way to disable stray PCI level triggered - * interrupts until the devices have had a driver attached. This - * is particularly a problem when the interrupts are shared. For - * example, if IRQ 10 is shared between a disk and network device - * and the disk device generates an interrupt, if we "activate" - * IRQ 10 when the network driver is set up, then we will get - * recursive interrupt 10's as nothing will know how to turn off - * the disk device's interrupt. - * - * Having the ICU's active means we can probe interrupt routing to - * see if a device causes the corresponding pending bit to be set. - * - * This is all rather inconvenient. + * Enable interrupts on the processor. The interrupts are still + * disabled in the interrupt controllers until interrupt handlers + * are registered. */ -#ifdef APIC_IO - bsp_apic_configure(); enable_intr(); -#else - enable_intr(); - INTREN(IRQ_SLAVE); -#endif /* APIC_IO */ /* nexus0 is the top of the i386 device tree */ device_add_child(root_bus, "nexus", 0); @@ -151,12 +129,6 @@ configure(dummy) if (isa_bus_device) isa_probe_children(isa_bus_device); #endif - - /* - * Now we're ready to handle (pending) interrupts. - * XXX this is slightly misplaced. - */ - spl0(); } static void @@ -167,11 +139,6 @@ configure_final(dummy) cninit_finish(); if (bootverbose) { - -#ifdef APIC_IO - imen_dump(); -#endif /* APIC_IO */ - #ifdef PC98 { int i; |