debugging: dump kimage list
diff --git a/kernel/kexec.c b/kernel/kexec.c
index 2bee072..87722d3 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -45,6 +45,8 @@
#include <crypto/hash.h>
#include <crypto/sha.h>
+static const int dump_list = 0;
+
/* Per cpu memory for storing cpu states in case of system crash. */
note_buf_t __percpu *crash_notes;
@@ -841,6 +843,7 @@
image->entry = ind_page;
image->last_entry = ind_page +
((PAGE_SIZE/sizeof(kimage_entry_t)) - 1);
+ if (dump_list) printk(" I: %010lx (%p)\n", (unsigned long)virt_to_phys(ind_page), ind_page);
}
*image->entry = entry;
image->entry++;
@@ -856,6 +859,7 @@
destination &= PAGE_MASK;
result = kimage_add_entry(image, destination | IND_DESTINATION);
+ if (dump_list) printk(" D: %010lx (%p)\n", destination, phys_to_virt(destination));
if (result == 0)
image->destination = destination;
@@ -869,6 +873,7 @@
page &= PAGE_MASK;
result = kimage_add_entry(image, page | IND_SOURCE);
+ if (dump_list) printk(" S: %010lx (%p)\n", page, phys_to_virt(page));
if (result == 0)
image->destination += PAGE_SIZE;