Check for mmio before restoring crtc/crtc2 pitch registers
This commit is contained in:
parent
5fdff8b95e
commit
c57944cd9a
|
@ -612,8 +612,11 @@ ATIRestore(KdCardInfo *card)
|
||||||
ATICardInfo *atic = card->driver;
|
ATICardInfo *atic = card->driver;
|
||||||
char *mmio = atic->reg_base;
|
char *mmio = atic->reg_base;
|
||||||
|
|
||||||
MMIO_OUT32(mmio, ATI_REG_CRTC_PITCH, atic->crtc_pitch);
|
if (mmio)
|
||||||
MMIO_OUT32(mmio, ATI_REG_CRTC2_PITCH, atic->crtc2_pitch);
|
{
|
||||||
|
MMIO_OUT32(mmio, ATI_REG_CRTC_PITCH, atic->crtc_pitch);
|
||||||
|
MMIO_OUT32(mmio, ATI_REG_CRTC2_PITCH, atic->crtc2_pitch);
|
||||||
|
}
|
||||||
ATIUnmapReg(card, atic);
|
ATIUnmapReg(card, atic);
|
||||||
|
|
||||||
atic->backend_funcs.restore(card);
|
atic->backend_funcs.restore(card);
|
||||||
|
|
Loading…
Reference in New Issue