mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.1 KiB
68 lines
1.1 KiB
/*[
|
|
|
|
lgdt.c
|
|
|
|
LOCAL CHAR SccsID[]="@(#)lgdt.c 1.5 02/09/94";
|
|
|
|
LGDT CPU Functions.
|
|
-------------------
|
|
|
|
]*/
|
|
|
|
|
|
#include <insignia.h>
|
|
|
|
#include <host_def.h>
|
|
#include <xt.h>
|
|
#include <c_main.h>
|
|
#include <c_addr.h>
|
|
#include <c_bsic.h>
|
|
#include <c_prot.h>
|
|
#include <c_seg.h>
|
|
#include <c_stack.h>
|
|
#include <c_xcptn.h>
|
|
#include <c_reg.h>
|
|
#include <lgdt.h>
|
|
|
|
/*
|
|
=====================================================================
|
|
EXTERNAL ROUTINES START HERE
|
|
=====================================================================
|
|
*/
|
|
|
|
|
|
GLOBAL VOID
|
|
LGDT16
|
|
#ifdef ANSI
|
|
(
|
|
IU32 op1[2] /* src(limit:base pair) operand */
|
|
)
|
|
#else
|
|
(op1)
|
|
IU32 op1[2];
|
|
#endif
|
|
{
|
|
SET_STAR_LIMIT(GDT_REG, op1[0]);
|
|
SET_STAR_BASE(GDT_REG, op1[1] & 0xffffff); /* store 24-bit base */
|
|
#ifdef DOUBLE_CPU
|
|
double_switch_to(SOFT_CPU);
|
|
#endif
|
|
}
|
|
|
|
GLOBAL VOID
|
|
LGDT32
|
|
#ifdef ANSI
|
|
(
|
|
IU32 op1[2] /* src(limit:base pair) operand */
|
|
)
|
|
#else
|
|
(op1)
|
|
IU32 op1[2];
|
|
#endif
|
|
{
|
|
SET_STAR_LIMIT(GDT_REG, op1[0]);
|
|
SET_STAR_BASE(GDT_REG, op1[1]);
|
|
#ifdef DOUBLE_CPU
|
|
double_switch_to(SOFT_CPU);
|
|
#endif
|
|
}
|