aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/isa/atpic_vector.s
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-12-04 21:15:14 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-12-04 21:15:14 +0000
commit5ee171d2644d1eff2fbf7bf8e4fcdb8935373152 (patch)
tree462eb53e6da187bc8c7cdb357ccb584fcf650d0c /sys/i386/isa/atpic_vector.s
parent50088f2089a5c0428bc3e900abf1f76153ab1a79 (diff)
downloadsrc-5ee171d2644d1eff2fbf7bf8e4fcdb8935373152.tar.gz
src-5ee171d2644d1eff2fbf7bf8e4fcdb8935373152.zip
Cleanup some leftover lint from the old interrupt system.
Also, while here, run up to 32 interrupt sources on APIC systems. Normalize INTREN/INTRDIS so they are the same on both UP and SMP systems rather than sometimes a macro, and sometimes a function. Reviewed by: jhb, jakeb
Notes
Notes: svn path=/head/; revision=69578
Diffstat (limited to 'sys/i386/isa/atpic_vector.s')
-rw-r--r--sys/i386/isa/atpic_vector.s31
1 files changed, 0 insertions, 31 deletions
diff --git a/sys/i386/isa/atpic_vector.s b/sys/i386/isa/atpic_vector.s
index 51b94931a209..f8104016619f 100644
--- a/sys/i386/isa/atpic_vector.s
+++ b/sys/i386/isa/atpic_vector.s
@@ -71,37 +71,6 @@ IDTVEC(vec_name) ; \
MEXITCOUNT ; \
jmp _doreti
-#if 0
-; \
- ALIGN_TEXT ; \
-2: ; \
- cmpb $3,_intr_nesting_level ; /* is there enough stack? */ \
- jae 1b ; /* no, return */ \
- movl _cpl,%eax ; \
- /* XXX next line is probably unnecessary now. */ \
- movl $HWI_MASK|SWI_MASK,_cpl ; /* limit nesting ... */ \
- incb _intr_nesting_level ; /* ... really limit it ... */ \
- sti ; /* ... to do this as early as possible */ \
- MAYBE_POPL_ES ; /* discard most of thin frame ... */ \
- popl %fs ; \
- popl %ecx ; /* ... original %ds ... */ \
- popl %edx ; \
- xchgl %eax,4(%esp) ; /* orig %eax; save cpl */ \
- pushal ; /* build fat frame (grrr) ... */ \
- pushl %ecx ; /* ... actually %ds ... */ \
- pushl %es ; \
- pushl %fs ; \
- mov $KDSEL,%ax ; \
- mov %ax,%es ; \
- mov %ax,%fs ; \
- movl (3+8+0)*4(%esp),%ecx ; /* ... %ecx from thin frame ... */ \
- movl %ecx,(3+6)*4(%esp) ; /* ... to fat frame ... */ \
- movl (3+8+1)*4(%esp),%eax ; /* ... cpl from thin frame */ \
- subl $4,%esp ; /* junk for unit number */ \
- MEXITCOUNT ; \
- jmp _doreti
-#endif
-
/*
* Slow, threaded interrupts.
*