[PATCH v2 1/2] ARM: determine PAGE_OFFSET from _stext
Mika Westerberg
ext-mika.1.westerberg at nokia.com
Mon Nov 8 02:59:27 EST 2010
It is normal that we can have different values for PAGE_OFFSET depending on
selected VM split. We avoid the hard-coded value and derive the value from the
_stext symbol instead.
Signed-off-by: Mika Westerberg <ext-mika.1.westerberg at nokia.com>
---
arm.c | 2 +-
makedumpfile.h | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/arm.c b/arm.c
index 3fc0599..3ea450a 100644
--- a/arm.c
+++ b/arm.c
@@ -81,7 +81,7 @@ get_machdep_info_arm(void)
{
unsigned long vmlist, vmalloc_start;
- info->page_offset = __PAGE_OFFSET;
+ info->page_offset = SYMBOL(_stext) & 0xffff0000UL;
info->max_physmem_bits = _MAX_PHYSMEM_BITS;
info->kernel_start = SYMBOL(_stext);
info->section_size_bits = _SECTION_SIZE_BITS;
diff --git a/makedumpfile.h b/makedumpfile.h
index 3f39a88..6d91d51 100644
--- a/makedumpfile.h
+++ b/makedumpfile.h
@@ -507,7 +507,6 @@ do { \
#define VMEMMAP_END (info->vmemmap_end)
#ifdef __arm__
-#define __PAGE_OFFSET (0xc0000000)
#define KVBASE_MASK (0xffff)
#define KVBASE (SYMBOL(_stext) & ~KVBASE_MASK)
#define _SECTION_SIZE_BITS (28)
--
1.5.6.5
More information about the kexec
mailing list