Quick and dirty work-around for broken interface.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36999 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-06-02 20:43:59 +00:00
parent 8c9b84a588
commit 19a0767e35

View File

@ -166,8 +166,12 @@ status_t
intel_allocate_memory(intel_info &info, size_t size, size_t alignment,
uint32 flags, addr_t *_base, addr_t *_physicalBase)
{
return gGART->allocate_memory(info.aperture, size, alignment,
flags, _base, _physicalBase);
// TODO: _physicalBase should be phys_addr_t!
phys_addr_t physicalBase;
status_t error = gGART->allocate_memory(info.aperture, size, alignment,
flags, _base, &physicalBase);
*_physicalBase = physicalBase;
return error;
}
@ -255,7 +259,7 @@ intel_extreme_init(intel_info &info)
dprintf("G4x mobile clock gating\n");
dspclk_gate_val |= 1L << 18;
}
write32(info.registers + 0x6200, dspclk_gate_val) ;
write32(info.registers + 0x6200, dspclk_gate_val) ;
} else {
dprintf("i965 quirk\n");