Skip to content

Commit

Permalink
Set Int10Current->Tag for the linux native int10 module
Browse files Browse the repository at this point in the history
Fixes bug #9296
  • Loading branch information
Alan Hourihane committed Dec 13, 2006
1 parent 8049eee commit 731952c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xfree86/int10/generic.c
Expand Up @@ -98,7 +98,7 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
base = INTPriv(pInt)->base = xnfalloc(SYS_BIOS);

pvp = xf86GetPciInfoForEntity(entityIndex);
if (pvp) pInt->Tag = ((pciConfigPtr)(pvp->thisCard))->tag;
if (pvp) pInt->Tag = pciTag(pvp->bus, pvp->device, pvp->func);

/*
* we need to map video RAM MMIO as some chipsets map mmio
Expand Down
3 changes: 3 additions & 0 deletions hw/xfree86/os-support/linux/int10/linux.c
Expand Up @@ -90,6 +90,7 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
legacyVGARec vga;
xf86int10BiosLocation bios;
Bool videoBiosMapped = FALSE;
pciVideoPtr pvp;

if (int10Generation != serverGeneration) {
counter = 0;
Expand Down Expand Up @@ -151,6 +152,8 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
pInt = (xf86Int10InfoPtr)xnfcalloc(1, sizeof(xf86Int10InfoRec));
pInt->scrnIndex = screen;
pInt->entityIndex = entityIndex;
pvp = xf86GetPciInfoForEntity(entityIndex);
if (pvp) pInt->Tag = pciTag(pvp->bus, pvp->device, pvp->func);
if (!xf86Int10ExecSetup(pInt))
goto error0;
pInt->mem = &linuxMem;
Expand Down

0 comments on commit 731952c

Please sign in to comment.