[PATCH] kdump: read previous kernel's memory
- Moving the crash_dump.c file to arch dependent part as kmap_atomic_pfn is specific to i386 and highmem may not exist in other archs. - Use ioremap for x86_64 to map the previous kernel memory. - In copy_oldmem_page(), we now directly copy to the user/kernel buffer and avoid the unneccesary copy to a kmalloc'd page. Signed-off-by:Rachita Kothiyal <rachita@in.ibm.com> Signed-off-by:
Vivek Goyal <vgoyal@in.ibm.com> Cc: Andi Kleen <ak@muc.de> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- arch/i386/kernel/Makefile 1 addition, 0 deletionsarch/i386/kernel/Makefile
- arch/i386/kernel/crash_dump.c 74 additions, 0 deletionsarch/i386/kernel/crash_dump.c
- arch/x86_64/kernel/Makefile 1 addition, 0 deletionsarch/x86_64/kernel/Makefile
- arch/x86_64/kernel/crash_dump.c 9 additions, 26 deletionsarch/x86_64/kernel/crash_dump.c
- fs/proc/vmcore.c 3 additions, 0 deletionsfs/proc/vmcore.c
- kernel/Makefile 0 additions, 1 deletionkernel/Makefile
Please register or sign in to comment