npx.c (45720) | npx.c (46548) |
---|---|
1/*- 2 * Copyright (c) 1990 William Jolitz. 3 * Copyright (c) 1991 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * from: @(#)npx.c 7.2 (Berkeley) 5/12/91 | 1/*- 2 * Copyright (c) 1990 William Jolitz. 3 * Copyright (c) 1991 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * from: @(#)npx.c 7.2 (Berkeley) 5/12/91 |
35 * $Id: npx.c,v 1.66 1999/03/28 23:28:18 dt Exp $ | 35 * $Id: npx.c,v 1.67 1999/04/16 21:22:24 peter Exp $ |
36 */ 37 38#include "npx.h" 39#if NNPX > 0 40 41#include "opt_debug_npx.h" 42#include "opt_math_emulate.h" 43 --- 108 unchanged lines hidden (view full) --- 152 * Special interrupt handlers. Someday intr0-intr15 will be used to count 153 * interrupts. We'll still need a special exception 16 handler. The busy 154 * latch stuff in probeintr() can be moved to npxprobe(). 155 */ 156inthand_t probeintr; 157__asm(" \n\ 158 .text \n\ 159 .p2align 2,0x90 \n\ | 36 */ 37 38#include "npx.h" 39#if NNPX > 0 40 41#include "opt_debug_npx.h" 42#include "opt_math_emulate.h" 43 --- 108 unchanged lines hidden (view full) --- 152 * Special interrupt handlers. Someday intr0-intr15 will be used to count 153 * interrupts. We'll still need a special exception 16 handler. The busy 154 * latch stuff in probeintr() can be moved to npxprobe(). 155 */ 156inthand_t probeintr; 157__asm(" \n\ 158 .text \n\ 159 .p2align 2,0x90 \n\ |
160 .type " __XSTRING(CNAME(probeintr)) ",@function \n\ |
|
160" __XSTRING(CNAME(probeintr)) ": \n\ 161 ss \n\ 162 incl " __XSTRING(CNAME(npx_intrs_while_probing)) " \n\ 163 pushl %eax \n\ 164 movb $0x20,%al # EOI (asm in strings loses cpp features) \n\ 165 outb %al,$0xa0 # IO_ICU2 \n\ 166 outb %al,$0x20 # IO_ICU1 \n\ 167 movb $0,%al \n\ 168 outb %al,$0xf0 # clear BUSY# latch \n\ 169 popl %eax \n\ 170 iret \n\ 171"); 172 173inthand_t probetrap; 174__asm(" \n\ 175 .text \n\ 176 .p2align 2,0x90 \n\ | 161" __XSTRING(CNAME(probeintr)) ": \n\ 162 ss \n\ 163 incl " __XSTRING(CNAME(npx_intrs_while_probing)) " \n\ 164 pushl %eax \n\ 165 movb $0x20,%al # EOI (asm in strings loses cpp features) \n\ 166 outb %al,$0xa0 # IO_ICU2 \n\ 167 outb %al,$0x20 # IO_ICU1 \n\ 168 movb $0,%al \n\ 169 outb %al,$0xf0 # clear BUSY# latch \n\ 170 popl %eax \n\ 171 iret \n\ 172"); 173 174inthand_t probetrap; 175__asm(" \n\ 176 .text \n\ 177 .p2align 2,0x90 \n\ |
178 .type " __XSTRING(CNAME(probetrap)) ",@function \n\ |
|
177" __XSTRING(CNAME(probetrap)) ": \n\ 178 ss \n\ 179 incl " __XSTRING(CNAME(npx_traps_while_probing)) " \n\ 180 fnclex \n\ 181 iret \n\ 182"); 183#endif /* SMP */ 184 --- 546 unchanged lines hidden --- | 179" __XSTRING(CNAME(probetrap)) ": \n\ 180 ss \n\ 181 incl " __XSTRING(CNAME(npx_traps_while_probing)) " \n\ 182 fnclex \n\ 183 iret \n\ 184"); 185#endif /* SMP */ 186 --- 546 unchanged lines hidden --- |