diff options
author | peter <peter@FreeBSD.org> | 2002-01-05 06:44:27 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-01-05 06:44:27 +0000 |
commit | 9c8997afd25e682ec48e3f1b18e447f94432912f (patch) | |
tree | ed04cecd5f8822990734341b8e88dbc6060fdd87 | |
parent | ba7a614d5a381c07fbf089ac0c262616d2840382 (diff) | |
download | FreeBSD-src-9c8997afd25e682ec48e3f1b18e447f94432912f.zip FreeBSD-src-9c8997afd25e682ec48e3f1b18e447f94432912f.tar.gz |
GC unfinished function selected_proc_ipi(). It is a duplicate of
apic_ipi_singledest() anyway.
-rw-r--r-- | sys/i386/i386/mpapic.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/i386/i386/mpapic.c b/sys/i386/i386/mpapic.c index aa9eaefd..dc7861f 100644 --- a/sys/i386/i386/mpapic.c +++ b/sys/i386/i386/mpapic.c @@ -638,36 +638,6 @@ selected_apic_ipi(u_int target, int vector, int delivery_mode) return status; } - -#if defined(READY) -/* - * Send an IPI INTerrupt containing 'vector' to CPU 'target' - * NOTE: target is a LOGICAL APIC ID - */ -int -selected_proc_ipi(int target, int vector) -{ - u_long icr_lo; - u_long icr_hi; - - /* write the destination field for the target AP */ - icr_hi = (lapic.icr_hi & ~APIC_ID_MASK) | - (cpu_num_to_apic_id[target] << 24); - lapic.icr_hi = icr_hi; - - /* write command */ - icr_lo = (lapic.icr_lo & APIC_RESV2_MASK) | - APIC_DEST_DESTFLD | APIC_DELMODE_FIXED | vector; - lapic.icr_lo = icr_lo; - - /* wait for pending status end */ - while (lapic.icr_lo & APIC_DELSTAT_MASK) - /* spin */ ; - - return 0; /** XXX FIXME: return result */ -} -#endif /* READY */ - #endif /* APIC_IO */ |