summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-24 10:00:07 +0000
committerjhb <jhb@FreeBSD.org>2001-01-24 10:00:07 +0000
commit0bd8027e4a65d2d9269de07df3e27384ab3c0bfa (patch)
tree7b9ca39481c641dc787ef50e8c38b553f785c887 /sys/amd64
parentd04125226ca1cbadc2cec1d981df46dfc0e742c9 (diff)
downloadFreeBSD-src-0bd8027e4a65d2d9269de07df3e27384ab3c0bfa.zip
FreeBSD-src-0bd8027e4a65d2d9269de07df3e27384ab3c0bfa.tar.gz
- Remove all the #if 0'd code that used to implement IRQ forwarding.
- Remove #if 0'd lazy interrupt mask.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/apic_vector.S85
1 files changed, 0 insertions, 85 deletions
diff --git a/sys/amd64/amd64/apic_vector.S b/sys/amd64/amd64/apic_vector.S
index a2cdb47..80f2bf0 100644
--- a/sys/amd64/amd64/apic_vector.S
+++ b/sys/amd64/amd64/apic_vector.S
@@ -329,86 +329,6 @@ _Xcpuast:
POP_FRAME
iret
-#if 0
-
-/*
- * Executed by a CPU when it receives an XFORWARD_IRQ IPI.
- */
-
- .text
- SUPERALIGN_TEXT
- .globl _Xforward_irq
-_Xforward_irq:
- PUSH_FRAME
- movl $KDSEL, %eax
- mov %ax, %ds /* use KERNEL data segment */
- mov %ax, %es
- movl $KPSEL, %eax
- mov %ax, %fs
-
- movl $0, _lapic+LA_EOI /* End Of Interrupt to APIC */
-
- FAKE_MCOUNT(13*4(%esp))
-
- lock
- incl CNAME(forward_irq_hitcnt)
- cmpb $4, PCPU(INTR_NESTING_LEVEL)
- jae 1f
-
- incb PCPU(INTR_NESTING_LEVEL)
- sti
-
- MEXITCOUNT
- jmp doreti_next /* Handle forwarded interrupt */
-1:
- lock
- incl CNAME(forward_irq_toodeepcnt)
- MEXITCOUNT
- POP_FRAME
- iret
-
-/*
- *
- */
-forward_irq:
- MCOUNT
- cmpl $0,_invltlb_ok
- jz 4f
-
- cmpl $0, CNAME(forward_irq_enabled)
- jz 4f
-
-/* XXX - this is broken now, because mp_lock doesn't exist
- movl _mp_lock,%eax
- cmpl $FREE_LOCK,%eax
- jne 1f
- */
- movl $0, %eax /* Pick CPU #0 if noone has lock */
-1:
- shrl $24,%eax
- movl _cpu_num_to_apic_id(,%eax,4),%ecx
- shll $24,%ecx
- movl _lapic+LA_ICR_HI, %eax
- andl $~APIC_ID_MASK, %eax
- orl %ecx, %eax
- movl %eax, _lapic+LA_ICR_HI
-
-2:
- movl _lapic+LA_ICR_LO, %eax
- andl $APIC_DELSTAT_MASK,%eax
- jnz 2b
- movl _lapic+LA_ICR_LO, %eax
- andl $APIC_RESV2_MASK, %eax
- orl $(APIC_DEST_DESTFLD|APIC_DELMODE_FIXED|XFORWARD_IRQ_OFFSET), %eax
- movl %eax, _lapic+LA_ICR_LO
-3:
- movl _lapic+LA_ICR_LO, %eax
- andl $APIC_DELSTAT_MASK,%eax
- jnz 3b
-4:
- ret
-#endif
-
/*
* Executed by a CPU when it receives an Xcpustop IPI from another CPU,
*
@@ -570,11 +490,6 @@ _Xrendezvous:
.data
-#if 0
-/* active flag for lazy masking */
-iactive:
- .long 0
-#endif
#ifdef COUNT_XINVLTLB_HITS
.globl _xhits
OpenPOWER on IntegriCloud