version 1.109, 2014/01/11 17:05:17 |
version 1.110, 2014/01/26 19:16:17 |
Line 139 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 139 __KERNEL_RCSID(0, "$NetBSD$"); |
|
#include "opt_vm86.h" |
#include "opt_vm86.h" |
#include "opt_xen.h" |
#include "opt_xen.h" |
|
|
#include "npx.h" |
|
#include "assym.h" |
#include "assym.h" |
#include "lapic.h" |
#include "lapic.h" |
#include "ioapic.h" |
#include "ioapic.h" |
Line 1288 IDTVEC(svr4_fasttrap) |
|
Line 1287 IDTVEC(svr4_fasttrap) |
|
cli |
cli |
jmp 2b |
jmp 2b |
|
|
#if NNPX > 0 |
|
/* |
|
* Special interrupt handlers. Someday intr0-intr15 will be used to count |
|
* interrupts. We'll still need a special exception 16 handler. The busy |
|
* latch stuff in probintr() can be moved to npxprobe(). |
|
*/ |
|
|
|
/* |
|
* void probeintr(void) |
|
*/ |
|
NENTRY(probeintr) |
|
ss |
|
incl _C_LABEL(npx_intrs_while_probing) |
|
pushl %eax |
|
movb $0x20,%al # EOI (asm in strings loses cpp features) |
|
outb %al,$0xa0 # IO_ICU2 |
|
outb %al,$0x20 # IO_ICU1 |
|
movb $0,%al |
|
outb %al,$0xf0 # clear BUSY# latch |
|
popl %eax |
|
iret |
|
END(probeintr) |
|
|
|
/* |
|
* void probetrap(void) |
|
*/ |
|
NENTRY(probetrap) |
|
ss |
|
incl _C_LABEL(npx_traps_while_probing) |
|
fnclex |
|
iret |
|
END(probetrap) |
|
|
|
/* |
/* |
* int npx586bug1(int a, int b) |
* int npx586bug1(int a, int b) |
|
* Used when checking for the FDIV bug on first generations pentiums. |
|
* Anything 120MHz or above is fine. |
*/ |
*/ |
NENTRY(npx586bug1) |
NENTRY(npx586bug1) |
fildl 4(%esp) # x |
fildl 4(%esp) # x |
Line 1336 NENTRY(npx586bug1) |
|
Line 1304 NENTRY(npx586bug1) |
|
popl %eax |
popl %eax |
ret |
ret |
END(npx586bug1) |
END(npx586bug1) |
#endif /* NNPX > 0 */ |
|
|
|
/* |
/* |
* void sse2_idlezero_page(void *pg) |
* void sse2_idlezero_page(void *pg) |