Commit cab3f16f authored by David S. Miller's avatar David S. Miller

[SPARC64]: Fix >8K I/O mappings.

Increment the PFN field of the PTE so that the tests
on vm_pfn in mm/memory.c match up.  The TLB ignores these
lower bits for larger page sizes, so it's OK to set things
like this.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4168f7a3
...@@ -77,6 +77,7 @@ static inline void io_remap_pte_range(struct mm_struct *mm, pte_t * pte, ...@@ -77,6 +77,7 @@ static inline void io_remap_pte_range(struct mm_struct *mm, pte_t * pte,
BUG_ON(!pte_none(*pte)); BUG_ON(!pte_none(*pte));
set_pte_at(mm, address, pte, entry); set_pte_at(mm, address, pte, entry);
address += PAGE_SIZE; address += PAGE_SIZE;
pte_val(entry) += PAGE_SIZE;
pte++; pte++;
} while (address < curend); } while (address < curend);
} while (address < end); } while (address < end);
......
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