diff options
Diffstat (limited to 'kexec/crashdump-xen.c')
-rw-r--r-- | kexec/crashdump-xen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kexec/crashdump-xen.c b/kexec/crashdump-xen.c index fcef9db..4d6a25d 100644 --- a/kexec/crashdump-xen.c +++ b/kexec/crashdump-xen.c @@ -12,6 +12,7 @@ #include <fcntl.h> #include "kexec.h" #include "crashdump.h" +#include "kexec-syscall.h" #ifdef HAVE_XENCTRL_H #include <xenctrl.h> @@ -90,7 +91,7 @@ int xen_get_nr_phys_cpus(void) if (xen_phys_cpus) return xen_phys_cpus; - if ((cpus = kexec_iomem_for_each_line(match, NULL, NULL))) { + if ((cpus = kexec_iomem_for_each_line(match, 1, NULL, NULL))) { n = sizeof(struct crash_note_info) * cpus; xen_phys_notes = malloc(n); if (!xen_phys_notes) { @@ -98,7 +99,8 @@ int xen_get_nr_phys_cpus(void) return -1; } memset(xen_phys_notes, 0, n); - kexec_iomem_for_each_line(match, xen_crash_note_callback, NULL); + kexec_iomem_for_each_line(match, 1, + xen_crash_note_callback, NULL); xen_phys_cpus = cpus; } |