Commit ba051c01 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Dave Jones

[AGP] size AGP mem correctly when memory is discontiguous.

This removes the agpgart assumption that memory is contiguous.
parent c6ce7bc9
......@@ -86,7 +86,7 @@ static int agp_find_max (void)
{
long memory, index, result;
memory = virt_to_phys(high_memory) >> 20;
memory = (num_physpages << PAGE_SHIFT) >> 20;
index = 1;
while ((memory > maxes_table[index].mem) && (index < 8))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment