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