|
|
3d2147 |
Description: Fix callback functions given to kexec_iomem_for_each_line
|
|
|
3d2147 |
Author: Bernhard Übelacker <bernhardu@vr-web.de>
|
|
|
3d2147 |
Bug-Debian: https://bugs.debian.org/771671
|
|
|
3d2147 |
Last-Update: <2014-12-15>
|
|
|
3d2147 |
|
|
|
3d2147 |
--- kexec-tools-2.0.7.orig/kexec/arch/i386/crashdump-x86.c
|
|
|
3d2147 |
+++ kexec-tools-2.0.7/kexec/arch/i386/crashdump-x86.c
|
|
|
3d2147 |
@@ -1041,8 +1041,8 @@ int get_max_crash_kernel_limit(uint64_t
|
|
|
3d2147 |
|
|
|
3d2147 |
static int crashkernel_mem_callback(void *UNUSED(data), int nr,
|
|
|
3d2147 |
char *UNUSED(str),
|
|
|
3d2147 |
- unsigned long base,
|
|
|
3d2147 |
- unsigned long length)
|
|
|
3d2147 |
+ unsigned long long base,
|
|
|
3d2147 |
+ unsigned long long length)
|
|
|
3d2147 |
{
|
|
|
3d2147 |
if (nr >= CRASH_RESERVED_MEM_NR)
|
|
|
3d2147 |
return 1;
|
|
|
3d2147 |
--- kexec-tools-2.0.7.orig/kexec/arch/sh/crashdump-sh.c
|
|
|
3d2147 |
+++ kexec-tools-2.0.7/kexec/arch/sh/crashdump-sh.c
|
|
|
3d2147 |
@@ -34,8 +34,8 @@ static struct memory_range crash_memory_
|
|
|
3d2147 |
static int crash_sh_range_nr;
|
|
|
3d2147 |
static int crash_sh_memory_range_callback(void *UNUSED(data), int UNUSED(nr),
|
|
|
3d2147 |
char *str,
|
|
|
3d2147 |
- unsigned long base,
|
|
|
3d2147 |
- unsigned long length)
|
|
|
3d2147 |
+ unsigned long long base,
|
|
|
3d2147 |
+ unsigned long long length)
|
|
|
3d2147 |
{
|
|
|
3d2147 |
|
|
|
3d2147 |
struct memory_range *range = crash_memory_range;
|
|
|
3d2147 |
--- kexec-tools-2.0.7.orig/kexec/arch/sh/kexec-sh.c
|
|
|
3d2147 |
+++ kexec-tools-2.0.7/kexec/arch/sh/kexec-sh.c
|
|
|
3d2147 |
@@ -24,8 +24,8 @@ static struct memory_range memory_range[
|
|
|
3d2147 |
|
|
|
3d2147 |
static int kexec_sh_memory_range_callback(void *UNUSED(data), int nr,
|
|
|
3d2147 |
char *UNUSED(str),
|
|
|
3d2147 |
- unsigned long base,
|
|
|
3d2147 |
- unsigned long length)
|
|
|
3d2147 |
+ unsigned long long base,
|
|
|
3d2147 |
+ unsigned long long length)
|
|
|
3d2147 |
{
|
|
|
3d2147 |
if (nr < MAX_MEMORY_RANGES) {
|
|
|
3d2147 |
memory_range[nr].start = base;
|