]> git.baikalelectronics.ru Git - kernel.git/commit
On CONFIG_64BIT_PHYS_ADDR, pfn always fits in 'unsigned long', but
authorRalf Baechle <ralf@linux-mips.org>
Wed, 17 Aug 2005 10:11:10 +0000 (10:11 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:32:09 +0000 (19:32 +0100)
commitee5a22e5496f3a6fc1fabe769d2f939ffe44c60a
tree841eb3e66c58a34a7f57701fa50fd6d7bbafcda5
parentd4039ca8625b10205fdad513dc2e21ba82ee1406
On CONFIG_64BIT_PHYS_ADDR, pfn always fits in 'unsigned long', but
pfn<<PAGE_SHIFT sometimes extends beyond.  The pte is big enough to hold
'long long', but the shift in pfn_pte() needs to do its calculation with
enough bits to hold the result.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/pgtable-32.h