]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Fix /dev/oldmem interface for kdump
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 31 Jul 2008 06:54:28 +0000 (16:54 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 19 Aug 2008 23:50:21 +0000 (09:50 +1000)
commit7230ced4925b07c259a62b515d8278c6bb1ad98c
tree7d1afdc5dac4ccc3481a8a22b86d2bb2f548bd4d
parentd82bf490948eaf10023ff850d0b5c70e49e0ba76
powerpc: Fix /dev/oldmem interface for kdump

A change to __ioremap() broke reading /dev/oldmem because we're no
longer able to ioremap pfn 0 (d177c207, "[PATCH] powerpc: IOMMU: don't
ioremap null addresses").

We actually don't need to ioremap for anything that's part of the linear
mapping, so just read it directly.

Also make sure we're only reading one page or less at a time.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Sachin Sant <sachinp@in.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/crash_dump.c