agpgart: Fix AGP aperture never being enabled
This commit is contained in:
@@ -51,10 +51,11 @@ agpgart_set_aperture(agpgart_t *dev, uint32_t base, uint32_t size, int enable)
|
|||||||
/* Disable old aperture mapping. */
|
/* Disable old aperture mapping. */
|
||||||
mem_mapping_disable(&dev->aperture_mapping);
|
mem_mapping_disable(&dev->aperture_mapping);
|
||||||
|
|
||||||
/* Set new aperture base address, size and mask. */
|
/* Set new aperture base address, size, mask and enable. */
|
||||||
dev->aperture_base = base;
|
dev->aperture_base = base;
|
||||||
dev->aperture_size = size;
|
dev->aperture_size = size;
|
||||||
dev->aperture_mask = size - 1;
|
dev->aperture_mask = size - 1;
|
||||||
|
dev->aperture_enable = enable;
|
||||||
|
|
||||||
/* Enable new aperture mapping if requested. */
|
/* Enable new aperture mapping if requested. */
|
||||||
if (dev->aperture_base && dev->aperture_size && dev->aperture_enable) {
|
if (dev->aperture_base && dev->aperture_size && dev->aperture_enable) {
|
||||||
|
Reference in New Issue
Block a user