mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Minor cleanup of APIC code.
This commit is contained in:
parent
e94543eef4
commit
afade3007a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27288
@ -34,7 +34,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
|
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
|
||||||
* $Id: autoconf.c,v 1.68 1997/05/11 18:05:36 tegge Exp $
|
* $Id: autoconf.c,v 1.2 1997/07/08 23:40:04 smp Exp smp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -61,9 +61,10 @@
|
|||||||
#include <machine/bootinfo.h>
|
#include <machine/bootinfo.h>
|
||||||
#include <machine/cons.h>
|
#include <machine/cons.h>
|
||||||
#include <machine/md_var.h>
|
#include <machine/md_var.h>
|
||||||
#if defined(APIC_IO)
|
#ifdef APIC_IO
|
||||||
#include <machine/smp.h>
|
#include <machine/smp.h>
|
||||||
#endif /* APIC_IO */
|
#endif /* APIC_IO */
|
||||||
|
|
||||||
#include <i386/isa/icu.h> /* For interrupts */
|
#include <i386/isa/icu.h> /* For interrupts */
|
||||||
|
|
||||||
#include "isa.h"
|
#include "isa.h"
|
||||||
@ -190,13 +191,13 @@ configure(dummy)
|
|||||||
configure_start();
|
configure_start();
|
||||||
|
|
||||||
/* Allow all routines to decide for themselves if they want intrs */
|
/* Allow all routines to decide for themselves if they want intrs */
|
||||||
#if defined(APIC_IO)
|
#ifdef APIC_IO
|
||||||
configure_local_apic();
|
bsp_apic_configure();
|
||||||
#endif /* APIC_IO */
|
enable_intr();
|
||||||
|
#else
|
||||||
enable_intr();
|
enable_intr();
|
||||||
#if !defined(APIC_IO)
|
|
||||||
INTREN(IRQ_SLAVE);
|
INTREN(IRQ_SLAVE);
|
||||||
#endif /* !APIC_IO */
|
#endif /* APIC_IO */
|
||||||
|
|
||||||
#if NEISA > 0
|
#if NEISA > 0
|
||||||
eisa_configure();
|
eisa_configure();
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
|
* from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
|
||||||
* $Id: autoconf.c,v 1.68 1997/05/11 18:05:36 tegge Exp $
|
* $Id: autoconf.c,v 1.2 1997/07/08 23:40:04 smp Exp smp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -61,9 +61,10 @@
|
|||||||
#include <machine/bootinfo.h>
|
#include <machine/bootinfo.h>
|
||||||
#include <machine/cons.h>
|
#include <machine/cons.h>
|
||||||
#include <machine/md_var.h>
|
#include <machine/md_var.h>
|
||||||
#if defined(APIC_IO)
|
#ifdef APIC_IO
|
||||||
#include <machine/smp.h>
|
#include <machine/smp.h>
|
||||||
#endif /* APIC_IO */
|
#endif /* APIC_IO */
|
||||||
|
|
||||||
#include <i386/isa/icu.h> /* For interrupts */
|
#include <i386/isa/icu.h> /* For interrupts */
|
||||||
|
|
||||||
#include "isa.h"
|
#include "isa.h"
|
||||||
@ -190,13 +191,13 @@ configure(dummy)
|
|||||||
configure_start();
|
configure_start();
|
||||||
|
|
||||||
/* Allow all routines to decide for themselves if they want intrs */
|
/* Allow all routines to decide for themselves if they want intrs */
|
||||||
#if defined(APIC_IO)
|
#ifdef APIC_IO
|
||||||
configure_local_apic();
|
bsp_apic_configure();
|
||||||
#endif /* APIC_IO */
|
enable_intr();
|
||||||
|
#else
|
||||||
enable_intr();
|
enable_intr();
|
||||||
#if !defined(APIC_IO)
|
|
||||||
INTREN(IRQ_SLAVE);
|
INTREN(IRQ_SLAVE);
|
||||||
#endif /* !APIC_IO */
|
#endif /* APIC_IO */
|
||||||
|
|
||||||
#if NEISA > 0
|
#if NEISA > 0
|
||||||
eisa_configure();
|
eisa_configure();
|
||||||
|
Loading…
Reference in New Issue
Block a user