Deleted Added
full compact
mptable.h (27697) mptable.h (27728)
1/*
2 * Copyright (c) 1996, by Steve Passe
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 8 unchanged lines hidden (view full) ---

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
1/*
2 * Copyright (c) 1996, by Steve Passe
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 8 unchanged lines hidden (view full) ---

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
25 * $Id: mp_machdep.c,v 1.36 1997/07/23 20:47:19 fsmp Exp $
25 * $Id: mp_machdep.c,v 1.22 1997/07/28 03:39:06 smp Exp smp $
26 */
27
28#include "opt_smp.h"
29
30#include <sys/param.h> /* for KERNBASE */
31#include <sys/systm.h>
32
33#include <vm/vm.h> /* for KERNBASE */

--- 1341 unchanged lines hidden (view full) ---

1375 panic("BAD default MP config: %d", type);
1376 /* NOTREACHED */
1377 }
1378
1379#if defined(APIC_IO)
1380 /* general cases from MP v1.4, table 5-2 */
1381 for (pin = 0; pin < 16; ++pin) {
1382 io_apic_ints[pin].int_type = 0;
26 */
27
28#include "opt_smp.h"
29
30#include <sys/param.h> /* for KERNBASE */
31#include <sys/systm.h>
32
33#include <vm/vm.h> /* for KERNBASE */

--- 1341 unchanged lines hidden (view full) ---

1375 panic("BAD default MP config: %d", type);
1376 /* NOTREACHED */
1377 }
1378
1379#if defined(APIC_IO)
1380 /* general cases from MP v1.4, table 5-2 */
1381 for (pin = 0; pin < 16; ++pin) {
1382 io_apic_ints[pin].int_type = 0;
1383 io_apic_ints[pin].int_flags = 0x05; /* edge-triggered/active-hi */
1383 io_apic_ints[pin].int_flags = 0x05; /* edge/active-hi */
1384 io_apic_ints[pin].src_bus_id = 0;
1384 io_apic_ints[pin].src_bus_id = 0;
1385 io_apic_ints[pin].src_bus_irq = pin; /* IRQ2 is caught below */
1385 io_apic_ints[pin].src_bus_irq = pin; /* IRQ2 caught below */
1386 io_apic_ints[pin].dst_apic_id = io_apic_id;
1386 io_apic_ints[pin].dst_apic_id = io_apic_id;
1387 io_apic_ints[pin].dst_apic_int = pin; /* 1-to-1 correspondence */
1387 io_apic_ints[pin].dst_apic_int = pin; /* 1-to-1 */
1388 }
1389
1390 /* special cases from MP v1.4, table 5-2 */
1391 if (type == 2) {
1392 io_apic_ints[2].int_type = 0xff; /* N/C */
1393 io_apic_ints[13].int_type = 0xff; /* N/C */
1394#if !defined(APIC_MIXED_MODE)
1395 /** FIXME: ??? */

--- 410 unchanged lines hidden ---
1388 }
1389
1390 /* special cases from MP v1.4, table 5-2 */
1391 if (type == 2) {
1392 io_apic_ints[2].int_type = 0xff; /* N/C */
1393 io_apic_ints[13].int_type = 0xff; /* N/C */
1394#if !defined(APIC_MIXED_MODE)
1395 /** FIXME: ??? */

--- 410 unchanged lines hidden ---