Leave iopl set to 3 so vesa module will work
This commit is contained in:
parent
f74555e942
commit
10f721acc5
|
@ -236,6 +236,7 @@ smiEnable (ScreenPtr pScreen)
|
||||||
SmiCardInfo *smic = pScreenPriv->card->driver;
|
SmiCardInfo *smic = pScreenPriv->card->driver;
|
||||||
|
|
||||||
ENTER ();
|
ENTER ();
|
||||||
|
iopl (3);
|
||||||
if (!subEnable (pScreen))
|
if (!subEnable (pScreen))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -257,8 +258,10 @@ smiDisable (ScreenPtr pScreen)
|
||||||
SmiCardInfo *smic = pScreenPriv->card->driver;
|
SmiCardInfo *smic = pScreenPriv->card->driver;
|
||||||
|
|
||||||
ENTER ();
|
ENTER ();
|
||||||
|
#if 0
|
||||||
#ifdef XV
|
#ifdef XV
|
||||||
KdXVDisable (pScreen);
|
KdXVDisable (pScreen);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
smiResetMMIO (pScreenPriv->card, smic);
|
smiResetMMIO (pScreenPriv->card, smic);
|
||||||
subDisable (pScreen);
|
subDisable (pScreen);
|
||||||
|
|
|
@ -285,8 +285,6 @@ smiDrawEnable (ScreenPtr pScreen)
|
||||||
smic = getSmiCardInfo(pScreenPriv);
|
smic = getSmiCardInfo(pScreenPriv);
|
||||||
dpr = smic->dpr;
|
dpr = smic->dpr;
|
||||||
|
|
||||||
iopl(3);
|
|
||||||
|
|
||||||
smis->stride = pScreenPriv->screen->fb[0].byteStride;
|
smis->stride = pScreenPriv->screen->fb[0].byteStride;
|
||||||
smis->dpr_vpr_enable = smiGetIndex (smic, VGA_SEQ_INDEX,
|
smis->dpr_vpr_enable = smiGetIndex (smic, VGA_SEQ_INDEX,
|
||||||
VGA_SEQ_DATA, 0x21) & ~0x03;
|
VGA_SEQ_DATA, 0x21) & ~0x03;
|
||||||
|
@ -329,7 +327,6 @@ smiDrawDisable (ScreenPtr pScreen)
|
||||||
smis = 0;
|
smis = 0;
|
||||||
dpr = 0;
|
dpr = 0;
|
||||||
accel_cmd = 0;
|
accel_cmd = 0;
|
||||||
iopl (0);
|
|
||||||
LEAVE ();
|
LEAVE ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user