summaryrefslogtreecommitdiff
path: root/kexec/arch/arm/phys_to_virt.c
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2016-06-06 18:01:18 +0100
committerSimon Horman <horms@verge.net.au>2016-06-08 09:24:10 +0900
commit2f10ffb193c219709f3079854a15718ad872f40e (patch)
treefd10a8ba6b7542b4a4d649635da4c43d0ea612fb /kexec/arch/arm/phys_to_virt.c
parentfbee2f01cddffebc347e80d99ce0faf418e163b4 (diff)
arm: fix type of phys_offset
Some LPAE systems may have phys_offset above the 4GB mark. Hence, we need phys_offset to be a 64-bit integer. Reviewed-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/arm/phys_to_virt.c')
-rw-r--r--kexec/arch/arm/phys_to_virt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kexec/arch/arm/phys_to_virt.c b/kexec/arch/arm/phys_to_virt.c
index c2fe2ea..46a4f68 100644
--- a/kexec/arch/arm/phys_to_virt.c
+++ b/kexec/arch/arm/phys_to_virt.c
@@ -1,6 +1,8 @@
#include "../../kexec.h"
#include "../../crashdump.h"
-#include "crashdump-arm.h"
+#include "phys_to_virt.h"
+
+uint64_t phys_offset;
/**
* phys_to_virt() - translate physical address to virtual address