Sync with sys/i386/i386/machdep.c revision 1.291.

This commit is contained in:
KATO Takenori 1998-03-07 15:42:54 +00:00
parent 0b8a3ff790
commit 917d483199
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34186
2 changed files with 14 additions and 4 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.77 1998/02/09 15:04:39 kato Exp $
* $Id: machdep.c,v 1.78 1998/03/02 10:02:01 kato Exp $
*/
#include "apm.h"
@ -1068,8 +1068,13 @@ setidt(idx, func, typ, dpl, selec)
int dpl;
int selec;
{
struct gate_descriptor *ip = idt + idx;
struct gate_descriptor *ip;
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
ip = (t_idt != NULL ? t_idt : idt) + idx;
#else
ip = idt + idx;
#endif
ip->gd_looffset = (int)func;
ip->gd_selector = selec;
ip->gd_stkcpy = 0;

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.77 1998/02/09 15:04:39 kato Exp $
* $Id: machdep.c,v 1.78 1998/03/02 10:02:01 kato Exp $
*/
#include "apm.h"
@ -1068,8 +1068,13 @@ setidt(idx, func, typ, dpl, selec)
int dpl;
int selec;
{
struct gate_descriptor *ip = idt + idx;
struct gate_descriptor *ip;
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
ip = (t_idt != NULL ? t_idt : idt) + idx;
#else
ip = idt + idx;
#endif
ip->gd_looffset = (int)func;
ip->gd_selector = selec;
ip->gd_stkcpy = 0;