Only do the Pentium trap fixup when we get a kernel mode page fault.
This commit is contained in:
parent
ec0c3a8489
commit
da60005b96
|
@ -1,5 +1,5 @@
|
|||
|
||||
/* $NetBSD: locore.s,v 1.174 1997/11/13 03:25:28 mycroft Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.175 1997/11/13 05:31:04 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1997
|
||||
|
@ -2030,6 +2030,12 @@ IDTVEC(trap0e)
|
|||
IDTVEC(trap0e_pentium)
|
||||
pushl $T_PAGEFLT
|
||||
INTRENTRY
|
||||
testb $SEL_RPL,TF_CS(%esp)
|
||||
jnz calltrap
|
||||
#ifdef VM86
|
||||
testl $PSL_VM,TF_EFLAGS(%esp)
|
||||
jnz calltrap
|
||||
#endif
|
||||
movl %cr2,%eax
|
||||
subl _idt,%eax
|
||||
jc calltrap
|
||||
|
|
Loading…
Reference in New Issue