提交 10840f03 编写于 作者: P Paul Mundt

sh: Don't factor in PAGE_OFFSET for valid_phys_addr_range() check.

Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 bfbedf78
......@@ -17,7 +17,7 @@
*/
int valid_phys_addr_range(unsigned long addr, size_t count)
{
if (addr < (PAGE_OFFSET + (PFN_START << PAGE_SHIFT)))
if (addr < __MEMORY_START)
return 0;
if (addr + count > __pa(high_memory))
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册